[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I haven't looked beyond the reading methods it is possible that some of the write implementations have a similar issue. Patch gps02 for 3.2 attached. I'll use that as the basis for a stand alone test_file_eintr.py targeted at 2.7. -- Added file: ht

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file22261/test_fileio_readers_3.2-gps01.diff ___ Python tracker ___ ___ Py

[issue12226] use secured channel for uploading packages to pypi

2011-06-06 Thread anatoly techtonik
anatoly techtonik added the comment: On Sat, Jun 4, 2011 at 5:33 PM, Éric Araujo wrote:> >> I think there should be a warning that the connection is >> unauthenticated (i.e. not secure). Users tend to be upset if they see >> 'https' and later find out that no certificates were verified. > > Tha

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-06-06 Thread Xuanji Li
Changes by Xuanji Li : -- nosy: +xuanji ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10376] ZipFile unzip is unbuffered

2011-06-06 Thread Xuanji Li
Changes by Xuanji Li : -- nosy: +xuanji ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2011-06-06 Thread Aron Griffis
Changes by Aron Griffis : -- nosy: +agriffis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12270] Please update copyright notice on bugs.python.org to 2011?

2011-06-06 Thread AJ
New submission from AJ : We are almost in mid-year. :) http://bugs.python.org/ has a copyright notice "1990-2010". Please update it to include 2011. -- components: None messages: 137736 nosy: brandmyself priority: normal severity: normal status: open title: Please update copyright noti

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2011-06-06 Thread Vincent
New submission from Vincent : Hello everybody, With the same build/compile command, I'm able to have "my" runing python version (2.6.x or 2.7.x) on IA64 server runing SLES 10 SP2/SP3,not on IA64 server runing SLES 11 SP1. I've try with 2.7, 2.7.1 and 2.7.2rc1 version without success. On both

[issue12270] Please update copyright notice on bugs.python.org to 2011?

2011-06-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12270] Please update copyright notice on bugs.python.org to 2011?

2011-06-06 Thread Ezio Melotti
Ezio Melotti added the comment: Done in r88853, thanks for the report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12021] mmap.read requires an argument

2011-06-06 Thread Charles-François Natali
Charles-François Natali added the comment: >> That's because of the _PyIO_ConvertSsize_t converter, which silently >> converts None to -1. >> There's probably a good reason for doing this in the _io module > > I'm not sure about the original reason, but I find None as the default > "omitted" va

[issue12021] mmap.read requires an argument

2011-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If being pretty is the only reason for this choice, then I think that > documenting the method as > > method:: read([n]) > > is simpler and cleaner . > > But you've got much more experience than me, so I won't argue any further :-) There are contexts where

[issue12238] Readline module loading in interactive mode

2011-06-06 Thread Niels Heinen
Niels Heinen added the comment: Hi Eric, David, This means that you cannot type "python" and press in any shared directory without the risk of a malicious readlinemodule.so being imported and executed. I think this is different from a scenario where someone explicitly runs a script or im

[issue12218] Removing wsgiref.egg-info

2011-06-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc28bc86d474 by Éric Araujo in branch 'default': Remove wsgiref.egg-info from msi.py (follow-up to d615eb7bce33, #12218) http://hg.python.org/cpython/rev/cc28bc86d474 -- ___ Python tracker

[issue12019] Dead or buggy code in importlib.test.__main__

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: Is this minor cleanup, non-bugfix okay for 3.2? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: Can you check if this is covered in test_database? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue12226] use secured channel for uploading packages to pypi

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: >> Thanks Stephan, that was on my mind but I forgot it. I’m -1 on >> using https if no validation is performed. > It will be more professional if you could also explain why. If you make an HTTPS connection without checking the certificate, what security does it

[issue12246] Warn when trying to install third-party module from an uninstalled checkout

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: Thanks. What about using sysconfig.is_python_build in your patch? -- assignee: tarek -> eric.araujo title: create installation path if it's non-existent -> Warn when trying to install third-party module from an uninstalled checkout _

[issue12226] use secured channel for uploading packages to pypi

2011-06-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: On Mon, Jun 6, 2011 at 11:50 AM, Éric Araujo wrote: > If you make an HTTPS connection without checking the certificate, what > security does it add? I'm in favor of cert checking, myself. -- ___ Python tracker

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: Thorsten Behrens said: > You are right, this is not a bug in Python. The diff provides a > workaround for a limitation in VC++ 2008 Express. This diff is a > piece of user service. ipatrol added: > Purity shmurity. The point of distutils is largely to present a >

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-06 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12222] All pysetup commands should respect exit codes

2011-06-06 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +pysetup --search should return non-zero when a dist is not installed and print a message stating the fact. ___ Python tracker ___

[issue12242] distutils2 environment marker for current compiler

2011-06-06 Thread Éric Araujo
Éric Araujo added the comment: What would the value be for non-C Python implementations? If the need for compiler-specific options is very common, we could consider either improving the compiler system or implement this request; if it’s not common, letting people use hooks would be enough. -

[issue8668] Packaging: add a 'develop' command

2011-06-06 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo keywords: +gsoc title: add a 'develop' command -> Packaging: add a 'develop' command versions: +Python 3.3 -3rd party ___ Python tracker ___

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: Hmm, in http://bugs.python.org/issue7511#msg106420 Tarek appeared to be supportive of the patch. Re DISTUTILS_USE_SDK: I don't think many users are aware of this variable. Also, it is not needed at all; it is sufficient to execute vcvars64.bat manually before ru

[issue12240] Allow multiple setup_hooks

2011-06-06 Thread Erik Bray
Erik Bray added the comment: Adds support for multiple setup_hooks and updates the docs. For now I left the option name as "setup_hook", though it might make sense to rename it to "setup_hooks" for consistency's sake. -- keywords: +patch Added file: http://bugs.python.org/file22264/py

[issue12238] Readline module loading in interactive mode

2011-06-06 Thread R. David Murray
R. David Murray added the comment: I've done a little poking around, and it looks like you are correct and I'm wrong. It appears that readline.so is or should be a special case. I've added some people to nosy to see what they think. Specifically, it appears that if I put a file that should s

[issue12196] add pipe2() to the os module

2011-06-06 Thread Charles-François Natali
Charles-François Natali added the comment: Hmm, thinking about it, I don't see any reason to make the flags argument optional. Here's a patch changing that (also, pipe2 is now declared as METH_O instead of METH_VARARGS). -- Added file: http://bugs.python.org/file22265/pipe2_arg.diff

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: panel.h is not found. You'll need to install the package that provides libpanel together with the header files: error: panel.h: No such file or directory This does not look like a Python bug, so I'll set the issue to 'pending'. You can still respond to the issue

[issue12196] add pipe2() to the os module

2011-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm, thinking about it, I don't see any reason to make the flags argument > optional. > Here's a patch changing that (also, pipe2 is now declared as METH_O instead > of METH_VARARGS). Looks good to me. -- ___ Py

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that I didn't test LMTP. Should I or is it obvious enough that the > change is ok? Thank you for the patch! I think it's ok. I'll give it a try and commit if everything is alright. -- ___ Python tracker

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-06-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b68390b6dbfd by Antoine Pitrou in branch 'default': Issue #11893: Remove obsolete internal wrapper class `SSLFakeFile` in the smtplib module. http://hg.python.org/cpython/rev/b68390b6dbfd -- nosy: +python-dev _

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-06-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue12040] Expose a Process.sentinel property (and fix polling loop in Process.join())

2011-06-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 568a3ba088e4 by Antoine Pitrou in branch 'default': Issue #12040: Expose a new attribute `sentinel` on instances of http://hg.python.org/cpython/rev/568a3ba088e4 -- nosy: +python-dev ___ Python tracker

[issue12040] Expose a Process.sentinel property (and fix polling loop in Process.join())

2011-06-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12232] embedded python import cmath

2011-06-06 Thread Thanh Ly
Thanh Ly added the comment: Hi Terry With BB 6 I import python26.dll and embed and extend Python in the same project (sent) fairly successfully. I converted the DLL to a BB format lib file and manage to extend Python successfully but could not link when trying to embed Python with the Lib fi

[issue9099] multiprocessing/win32: WindowsError: [Error 0] Success on Pipe()

2011-06-06 Thread Alexander Myodov
Alexander Myodov added the comment: Sorry for being a little bit slow to respond... No I was not able to come up with a testcase that could generate this problem in a reproducible way on any Windows box I had. This problem sometimes occured on various OS versions, being probably a Windows oof

[issue12196] add pipe2() to the os module

2011-06-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba975c7c33d3 by Charles-François Natali in branch 'default': Issue #12196: Make os.pipe2() flags argument mandatory. http://hg.python.org/cpython/rev/ba975c7c33d3 -- ___ Python tracker

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2011-06-06 Thread Vincent
Vincent added the comment: Hello Stefan, Thanks a lot for your time and answer, but here are some additional information regarding the requires "panel.h" file. I've just launched a find command onto my ia64 server, and here is the result: hesione:/ # find / -name "panel.h" /usr/include/ncurs

[issue12021] mmap.read requires an argument

2011-06-06 Thread Petri Lehtinen
Petri Lehtinen added the comment: > I think duplicating it is fine, since the code is probably simple anyway Added a new patch. I duplicated the None converting logic in _io/_iomodule.c to mmapmodule.c, changed the doc to say "read([n])", and expanded the test cases a bit. -- __

[issue12242] distutils2 environment marker for current compiler

2011-06-06 Thread Eli Collins
Eli Collins added the comment: > What would the value be for non-C Python implementations? I'm not really sure how this idea could have any value for those implementations, at least for the ones that can't make use of C extensions at all (I think PyPy can; so I guess that would leave Jython &

[issue12021] mmap.read requires an argument

2011-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Didn't you forget to attach the patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10115] Support accept4() for atomic setting of flags at socket creation

2011-06-06 Thread Charles-François Natali
Charles-François Natali added the comment: @nvetoshkin Could you update your patch against py3k? I've got a couple comments (can't login to Rietveld, it's probably due to the change of my tracker account name): if(flags & ~(SOCK_NONBLOCK | SOCK_CLOEXEC)) { PyErr_SetString(PyExc_ValueError

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the dependencies are now committed. Here is a new patch addressing Charles-François' comments: select() is now called before each call to read() when sentinels are given, to avoid race conditions. -- stage: -> patch review Added file: http://bugs

[issue12246] Warn when trying to install third-party module from an uninstalled checkout

2011-06-06 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Find attached. -- Added file: http://bugs.python.org/file22267/display-warning_try2.diff ___ Python tracker ___ _

[issue12232] embedded python import cmath

2011-06-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it possible that the problem is related to floating point exceptions? A quick Google search showed similar issue in another embedded library: http://www.softintegration.com/support/faq/embed.html#borland It seems important to add this instruction: _

[issue12232] embedded python import cmath

2011-06-06 Thread Mark Dickinson
Mark Dickinson added the comment: > Is it possible that the problem is related to floating point exceptions? Hmm. It's possible, but it's still a bit surprising that the crash occurs at import time rather than when calling one of the cmath functions. But it's very possible that there are so

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: mike bayer wrote: > > > > mike bayer added the comment: > > > > regarding "hey this is an MS bug not Python", projects which feature > > optional C extensions are starting to apply workarounds for the issue on > > their end (I will need to commit a spec

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Ryan Seto
Changes by Ryan Seto : -- nosy: -MrWerewolf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12232] embedded python import cmath

2011-06-06 Thread Mark Dickinson
Mark Dickinson added the comment: Looking at the cmath source, I'd be a bit suspicious that either the Py_NAN or the Py_HUGE_VAL macro (or both) is triggering an FPE. Both those values are used during module initialization. -- ___ Python tracker

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nadeem, I want to review this but won't have a chance to do it right away. Offhand, it seems like we could use the existing functools.lru_cache() for this if the stats were included as part of the key: cache[f1, f2, s1, s2]=outcome. Also, I want to take

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-06 Thread jeff deifik
jeff deifik added the comment: There are many possible solutions to this problem. Personally, I think mine is the simplest, though it changes the API. However, there have been several suggestions on simple fixes that don't change the API, all of which fix the resource leak. Doing nothing will

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: We will do something. The next release isn't for a while, so there is time to put thought into it rather than making an immediate check-in. -- ___ Python tracker

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > Wouldn't it be better to have distutils tell the user about the > possible options, instead of guessing and then possibly compiling > extensions which later on don't import or import, but don't work > as expected ? That would be an opt

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread mike bayer
mike bayer added the comment: > I think it's fair to ask the user to setup the environment correctly before running "python setup.py install" We're supporting automatic fallback to non-C install for those environments that don't support it. We're just looking for a predictable CCompilerError

[issue12272] Python 2.7.1 version conflict for package "Tcl" on Windows 7

2011-06-06 Thread Jack Eisenbach
New submission from Jack Eisenbach : I wrote a Tkinter application that runs fine with Python 2.6.5 and 2.6.6 on a Windows 7 (32-bit version) machine. The same app fails with 2.7.1. Below is the debug output: c:\ISS\ledmatrix>led-display.py Traceback (most recent call last): File "ledmatrix.

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2011-06-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Stefan Krah wrote: > > > > Stefan Krah added the comment: > > > > Marc-Andre Lemburg wrote: >> >> Wouldn't it be better to have distutils tell the user about the >> >> possible options, instead of guessing and then possibly compiling >> >> extensions whi

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-06-06 Thread R. David Murray
R. David Murray added the comment: Why was this issue set to pending? No motivating comment was added. -- nosy: +r.david.murray status: pending -> open ___ Python tracker ___ __

[issue10405] IDLE breakpoint facility undocumented

2011-06-06 Thread Nick ODell
Nick ODell added the comment: I've added a short note regarding breakpoints in Doc/library/idle.rst Ned, I'm not an experienced user with IDLE by any means, but I think some documentation is better than none, no? -- nosy: +Nick.ODell Added file: http://bugs.python.org/file22268/idle.r

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-06 Thread Nadeem Vawda
Nadeem Vawda added the comment: > Also, I want to take a fresh look at the cache strategy (saving diffs > of two files vs saving file contents individually) and think about > whether than makes any sense at all for real world use cases > (is there a common need to compare the same file pairs ove

[issue12232] embedded python import cmath

2011-06-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12019] Dead or buggy code in importlib.test.__main__

2011-06-06 Thread Brett Cannon
Brett Cannon added the comment: Sure, but I'm not even sure it's worth the hassle of dealing with the merge. If you want to put in the time then that's fine, but I don't think it's worth it. -- ___ Python tracker

[issue11690] Devguide: Add "communication" FAQ

2011-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: On a related note, http://docs.python.org/devguide/docquality.html should mention that the devguide itself lives in a different repo but the process is otherwise similar to contributing to the main docs. -- ___ Pytho

[issue11549] Rewrite peephole to work on AST

2011-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: Eugene raised the question of AST changes on python-dev [1] and the verdict was that so long as ast.__version__ is updated, AST clients will be able to cope with changes. Benjamin Peterson made some subsequent changes to the AST (bringing the AST for try and w

[issue12273] Change ast.__version__ calculation to provide consistent ordering

2011-06-06 Thread Nick Coghlan
New submission from Nick Coghlan : Benjamin's AST modification checkins switched directly from the SVN revision number (as a string) to the hg revision hash. While that preserves uniqueness, it makes ordering difficult to determine. The last AST version in 3.2 was '82163' (and it was '82160' i

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12273] Change ast.__version__ calculation to provide consistent ordering

2011-06-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I would like to change the version number calculation to something > like: > > '9.x.y.zzz' > > where > > 9 is a prefix to get 3.3+ ast.__version__ values to sort higher than > earlier versions x.y is the Python version so later versions sort > higher t

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Updated the title to reflect that the peephole optimizer will likely continue to exist but in a much simpler form. Some complex peephole optimization such as constant folding can be handled more easily and more robustly at the AST level. Other minor peep

[issue12274] "Print window" menu on IDLE aborts whole application

2011-06-06 Thread Gabriel Genellina
New submission from Gabriel Genellina : On Windows, IDLE closes all open windows and exits completely, without any error message, when selecting the "Print window" menu command. Starting IDLE from inside a console, one can see the error message: Exception in Tkinter callback Traceback (most re

[issue12274] "Print window" menu on IDLE aborts whole application

2011-06-06 Thread Gabriel Genellina
Gabriel Genellina added the comment: Note: There is a much bigger problem here: IDLE should not abort abruptly in such cases, without any error indication. -- ___ Python tracker __