[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 06cb0d602468 by Ned Deily in branch '2.7': Issue #8716: Fix errors in the non-OS X path of the 27 backport. http://hg.python.org/cpython/rev/06cb0d602468 -- status: pending - open ___

[issue12043] Update shutil documentation

2011-07-04 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043 ___ ___ Python-bugs-list

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8716 ___ ___ Python-bugs-list mailing

[issue12470] Fix cutpaste typo in test_shutil

2011-07-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This can be closed? -- assignee: - orsenthil nosy: +georg.brandl, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12470 ___

[issue12470] Fix cutpaste typo in test_shutil

2011-07-04 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12470 ___

[issue12484] The Py_InitModule functions no longer exist, but remain in the docs

2011-07-04 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12484 ___ ___ Python-bugs-list

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-07-04 Thread Nicolas Estibals
Nicolas Estibals nicolas.estib...@gmail.com added the comment: Thanks for your help and the interesting discussion with this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12147 ___

[issue12411] cgi.parse_multipart is broken on 3.x

2011-07-04 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: The patch seems broken to me. In cgi.parse_multipart(), the 'boundary' variable can be a string even though it is concatenated to bytes. Its default value is a string, and a string can be given via the pdict argument. There is no validity check

[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Another recent hang: http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%207.2%203.x/builds/1951/steps/test/logs/stdio [296/356/3] test_multiprocessing Timeout (1:00:00)! Thread 0x28402be0: File

[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501

2011-07-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___

[issue12471] wrong TypeError message on '%i' formatting

2011-07-04 Thread Renaud Blanch
Renaud Blanch rndbl...@gmail.com added the comment: that was quick! just a question: is it worth backporting the fix to 2.7? if this helps, here is a backport for the patch commited to 3.2 http://hg.python.org/cpython/rev/97707459bb5a -- Added file:

[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a624b86264a4 by Victor Stinner in branch '2.7': Issue #12429: Skip interrupted write tests on FreeBSD = 7 http://hg.python.org/cpython/rev/a624b86264a4 New changeset e924e51e9447 by Victor Stinner in branch '3.2': Issue #12429: Skip

[issue12487] urllib2.urlopen() returns object missing context manager

2011-07-04 Thread Peter Schuller
New submission from Peter Schuller peter.schul...@infidyne.com: The documentation states it returns a file-like object. In Python 2.5+ I expect such file-like objects to have a context manager for use with the with statement. In my particular use-case, the lack comes from urllib.addinfourl

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: In order to have a basis for discussion, I've set up a repo at http://hg.python.org/features/pep-3118#memoryview with an implementation of PyManagedBuffer. The whole test suite passes, also with refleak counting and Valgrind.

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22564/bbe70ca4e0e5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick Coghlan rep...@bugs.python.org wrote: The reason redirecting all requests to the underlying object doesn't work is because repeated calls to getbuffer on mutable objects are allowed to return *different* answers. Assume we have a

[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input

2011-07-04 Thread Yoav Weiss
Yoav Weiss yoav.weiss...@gmail.com added the comment: Thanks for correcting me. I guess I assumed that the message variable is an HTTPMessage. Is send_response documented somewhere? I failed to find a reference. On Sun, Jul 3, 2011 at 9:45 PM, Petri Lehtinen rep...@bugs.python.orgwrote:

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 2, more complete: use HAVE_MBCS everywhere. -- Added file: http://bugs.python.org/file22566/have_mbcs-2.patch ___ Python tracker rep...@bugs.python.org

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: @skrah: Yes, Numpy exposes only a single buffer per object. Making this a requirement in the PEP would probably be a sane change, as there is probably little real-world need to allow it behave otherwise. Comment on the patch: it seems you do not

[issue12411] cgi.parse_multipart is broken on 3.x

2011-07-04 Thread Jonas Wagner
Jonas Wagner ve...@gmx.ch added the comment: Hi Tal, Thanks a lot for your feedback. My primary objective was to increase the test coverage for cgi.py. If it is a problem to have the additional tests in this patch I'm happy to create a new issue with a separate patch. The default value for

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Version 3 of the patch: - fix initialization of the filesystem encoding if HAVE_MBCS is not set - Python fails on the filesystem encoding if it is unable to get the filesystem encoding instead of using UTF-8 - reorganize the

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Luke
New submission from Luke lcamp...@email.unc.edu: I have found that when using multiprocessing.Connection objects to pass data between two processes, closing one end of the pipe is not properly communicated to the other end. My expectation was that when calling recv() on the remote end, it

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7ce685cda0ae by Victor Stinner in branch 'default': Issue #9642: Fix filesystem encoding initialization: use the ANSI code page on http://hg.python.org/cpython/rev/7ce685cda0ae -- nosy: +python-dev

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 75b18b10064f by Victor Stinner in branch 'default': Issue #9642: Fix the definition of time.clock() on Windows http://hg.python.org/cpython/rev/75b18b10064f -- ___ Python tracker

[issue12411] cgi.parse_multipart is broken on 3.x

2011-07-04 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: Yes, please submit the other additional tests in a separate issue. The default value for boundary should surely be b. A simple test should be added where cgi.parse_multipart() uses the default boundary. If valid_boundary() is used only for

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Pauli Virtanen rep...@bugs.python.org wrote: Comment on the patch: it seems you do not track the re-export count in memory_getbuf: a = memoryview(obj) b = numpy.asarray(a) a.release() b[0] = 123 # -- BOOM: the

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 13e6d3cb2ecd by Victor Stinner in branch 'default': Issue #9642: Uniformize the tests on the availability of the mbcs codec http://hg.python.org/cpython/rev/13e6d3cb2ecd -- ___ Python

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-07-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9642 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It might be worth postponing the multi-dimensional support to a second patch, though. If we can get the buffer lifecycle solid first then that provides a better foundation for any further development. --

[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4f14050a963f by Victor Stinner in branch 'default': Issue #12452: Plist and Dict are now deprecated http://hg.python.org/cpython/rev/4f14050a963f -- nosy: +python-dev ___ Python tracker

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As far as the rule of disallowing shape changes while a buffer is exported, I actually think that's a more sane approach as well. However, I've been burned enough times by going nobody would be insane enough to rely on that, would they? that

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-07-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11859 ___ ___

[issue10141] SocketCan support

2011-07-04 Thread Tiago Gonçalves
Tiago Gonçalves tiagogoncal...@ua.pt added the comment: There is this simple program that can be easily adapted to test the interface. http://old.nabble.com/Socketcan-with-Python-td29286297.html#a29286297 -- nosy: +ogait87 ___ Python tracker

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [I agree that multi-dimensional support should not be part of this patch. I was thinking about creating a separate branch for that.] Nick Coghlan rep...@bugs.python.org wrote: As far as the rule of disallowing shape changes while a

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: That's because the other end of the pipe (p1) is open in the child process (FDs are inherited on fork()). Just add p1.close() at the beginning of fn() and you'll get EOF. Closing as invalid. -- nosy: +neologix resolution: -

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Nice work with the patch Stefan - I've added a few review comments (including a suggestion on how to deal with the GetContiguous problem). One idea that review did prompt is that if we aren't going back to the original object for fresh buffer

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Is there anything stopping us just storing the flags on PyManagedBuffer? It's OK if the construction API requires the flag information in addition to the Py_buffer struct. -- ___ Python tracker

[issue10141] SocketCan support

2011-07-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix, rosslagerwall versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___

[issue12415] Missing: How to checkout the Doc sources

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: We fix bugs in 3.2 and then forward-merge in what will become 3.3, using Mercurial. Then we apply the same change for 2.7. More info: http://docs.python.org/devguide I will commit this change this week. -- assignee: docs@python -

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Luke
Luke lcamp...@email.unc.edu added the comment: That's interesting, thanks for your response. It is also a bit awkward.. Might I recommend adding a note to the documentation? It is not really intuitive that each child should need to close the end of the pipe it isn't using (especially since it

[issue12043] Update shutil documentation

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: - If *symlinks* is true, symbolic links in the source tree are + If *symlinks* is ``True``, symbolic links in the source tree are I’m not sure about that change. It may be on purpose that lower-case true is used, given that the code will

[issue12391] packaging install fails to clean up temp files

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 1: Agreed. 2 and 3: Alexis most probably added that behavior as a convenience. Unless I’m mistaken, the point of $TMP/$TMPDIR is that the OS itself will clean it up, for example on shutdown, so programs that leave stuff here are not strictly

[issue793069] Add --remove-source option

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I am now -1: I don’t see this feature as particularly useful, and it would increase the maintenance cost. If nobody speaks up to defend it, I will reject it. -- versions: +Python 3.3 -3rd party ___

[issue4673] Distutils should provide an uninstall command

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distutils2/packaging now provides a remove function and a pysetup remove command. -- dependencies: -distutils removing old files, deleting unneeded old files from installed location. resolution: - fixed stage: - committed/rejected

[issue5342] packaging: add tests for old versions cleanup on update

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m renaming this to make the status clearer: it’s about adding tests. -- keywords: +easy nosy: +alexis stage: - test needed title: distutils removing old files, deleting unneeded old files from installed location. - packaging: add

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: @skrah: Ahh, this always happens when I don't run it :) But my point stands -- the reason why it does not crash with Numpy is that Numpy calls PyMemoryView_FromObject to obtain a new memoryview and then uses PyMemoryView_GET_BUFFER. Along this

[issue10571] setup.py upload --sign broken: TypeError: 'str' does not support the buffer interface

2011-07-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: needs patch - test needed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10571 ___

[issue12489] email.errors.HeaderParseError if base64url is used

2011-07-04 Thread Thomas Guettler
New submission from Thomas Guettler guet...@thomas-guettler.de: from email.header import decode_header decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=') Traceback (most recent call last): File stdin, line 1, in module File

[issue12391] packaging install fails to clean up temp files

2011-07-04 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Éric Araujo mer...@netwok.org added the comment: 2 and 3: Alexis most probably added that behavior as a convenience. Unless I’m mistaken, the point of $TMP/$TMPDIR is that the OS itself will clean it up, for example on shutdown, so

[issue12489] email.errors.HeaderParseError if base64url is used

2011-07-04 Thread Thomas Guettler
Thomas Guettler guet...@thomas-guettler.de added the comment: This happens on Python3: root@ubuntu1004devel64:~# python3 Python 3.1.2 (r312:79147, Sep 27 2010, 09:57:50) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. from email.header import decode_header

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e07b331bf489 by Victor Stinner in branch '3.2': Issue #12469: Run wakeup signal tests in subprocess to run the test in a http://hg.python.org/cpython/rev/e07b331bf489 New changeset b9de5e55f798 by Victor Stinner in branch 'default':

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commits e07b331bf489 and b9de5e55f798 run wakeup and pending signal tests in a subprocess to avoid border effects with threads. It should make these tests more reliable, not only on FreeBSD 6. PendingSignalsTests now use os.kill()

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7eef821ab20d by Victor Stinner in branch 'default': Issue #12469: replace assertions by explicit if+raise http://hg.python.org/cpython/rev/7eef821ab20d -- ___ Python tracker

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: TODO: - check_signum() of WakeupSignalsTests.check_wakeup(): remove set() to check the order of the received signals (revert 29e08a98281d) - run test_main(), test_itimer_virtual() and test_itimer_prof() in subprocesses - fix/skip

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-07-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12398 ___ ___ Python-bugs-list

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-07-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg134878 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11898 ___

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: TODO: run test_main(), test_itimer_virtual() and test_itimer_prof() in subprocesses Another TODO: check if test_sigtimedwait_poll() still fails after reverting 024827a9db64 (thread initialization). --

[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input

2011-07-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22565/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12439 ___

[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See http://docs.python.org/dev/library/http.server#http.server.BaseHTTPRequestHandler.send_response -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12439

[issue12486] tokenize module should have a unicode API

2011-07-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, haypo type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12486 ___

[issue12485] textwrap.wrap: add control for custom length and orphans

2011-07-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi! Thanks for the report and patch. Are your two requests related? If not, it would be best to open two reports. -- components: +Library (Lib) -Extension Modules keywords: +needs review nosy: +eric.araujo stage: - patch review

[issue12487] urllib2.urlopen() returns object missing context manager

2011-07-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12487 ___ ___ Python-bugs-list mailing list

[issue10141] SocketCan support

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The patch looks good to me. A couple remarks: - could you please post it as a Mercurial diff? (it makes it easier to review and apply) @@ -1151,6 +1151,25 @@ makesockaddr(int sockfd, struct sockaddr } + return

[issue12043] Update shutil documentation

2011-07-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yep. The parts changing true/false to ``True``/``False`` should not be committed. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Well, in this regard it behaves like a Unix pipe/socket (in the duplex case it's implemented with a Unix domain socket), so I find it quite natural (of course, you have to know about FD inheritance upon fork()). I'm not convinced it's

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file22569/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12488 ___

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, I think it deserves a comment in the documentation that behaviour of Pipes and Queues when one of the process terminates is undefined and implementation-dependent. By the way, there's internal support in 3.3 to reliably detect killed

[issue12413] make faulthandler dump traceback of child processes

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: subprocess doesn't use a shell by default, and I don't think that multiprocessing uses a shell to start Python. No, but we precisely want subprocess/multiprocessing-created processes to be in the same process group. To simplify

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright. Luke, if you're motivated, feel free to provide a patch. The relevant file is Doc/library/multiprocessing.rst. -- ___ Python tracker rep...@bugs.python.org

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2011-07-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, if you don't want children processes to continue running when the master exits, just make them daemonic processes (by adding daemon=True to the Process() constructor call). -- ___ Python

[issue12489] email.errors.HeaderParseError if base64url is used

2011-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This gives the correct result: decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU/xkcmluZzNwLmpwZw==?=') (I replaced _ with /) The header was probably generated by a variant of the base64 encoding, like this one:

[issue12391] packaging install fails to clean up temp files

2011-07-04 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: I'm +1 on applying this patch as well. Removing files in the tmp directory is far better than letting the OS doing so. -- ___ Python tracker rep...@bugs.python.org

[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 861b483e88d9 by Victor Stinner in branch '3.2': Issue #12467: warnings: fix a race condition if a warning is emitted at http://hg.python.org/cpython/rev/861b483e88d9 -- ___ Python tracker

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-07-04 Thread Kamil Kisiel
Kamil Kisiel ka...@kamilkisiel.net added the comment: Here's my proposed patch for the documentation, against the head of the 2.7 branch. -- keywords: +patch Added file: http://bugs.python.org/file22570/os.rst.patch ___ Python tracker

[issue12487] urllib2.urlopen() returns object missing context manager

2011-07-04 Thread Julian
Julian julian+python@grayvines.com added the comment: You probably should bring this up again on #4972 which is being worked on. (and for the immediate future you have contextlib.closing too in case you hadn't seen it already) -- nosy: +Julian

[issue10403] Use member consistently

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d442c313536b by Senthil Kumaran in branch '3.2': issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.

[issue10403] Use member consistently

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d442c313536b by Senthil Kumaran in branch '3.2': issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-04 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Sorry, I fail to see how the import graph is related to the correct lock acquisition order. Some locks are created dynamically, for example. Import dependency is a reasonable heuristic to look into for inter-module locking order. The rational

[issue10403] Use member consistently

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b8f5da066782 by Senthil Kumaran in branch '2.7': Fix closes issue10403 - Let's not use members anymore. http://hg.python.org/cpython/rev/b8f5da066782 -- resolution: - fixed stage: needs patch - committed/rejected status:

[issue12490] Documentation for itertools.chain.from_iterable is incorrect

2011-07-04 Thread Rodolpho Eckhardt
New submission from Rodolpho Eckhardt rodolpho.eckha...@gmail.com: The documentation at http://docs.python.org/py3k/library/itertools.html#itertools.chain and http://docs.python.org/library/itertools.html#itertools.chain is inconsistent. At the definition of the class it states that

[issue12411] cgi.parse_multipart is broken on 3.x

2011-07-04 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: When the FieldStorage class was fixed there was a discussion in issue 4953 about the module-level functions parse() and parse_multipart(). The code was very similar to methods of the FieldStorage class so the idea was to use

[issue12490] Documentation for itertools.chain.from_iterable is incorrect

2011-07-04 Thread Rodolpho Eckhardt
Rodolpho Eckhardt rodolpho.eckha...@gmail.com added the comment: My mistake reading the documentation. Sorry, closing this issue. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12490

[issue12490] Documentation for itertools.chain.from_iterable is incorrect

2011-07-04 Thread Rodolpho Eckhardt
Changes by Rodolpho Eckhardt rodolpho.eckha...@gmail.com: -- nosy: -docs@python resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12490 ___

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 34061f0d35ba by Victor Stinner in branch 'default': Issue #12469: partial revert of 024827a9db64, freebsd6 thread initialization http://hg.python.org/cpython/rev/34061f0d35ba -- ___

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: As discussed in issue #12469, the commit 024827a9db64 makes things worse: it changes the behaviour of many functions related to signal handling (e.g. sigwait()) just to be able to use pthread_kill() on the main thread. I reverted

[issue12487] urllib2.urlopen() returns object missing context manager

2011-07-04 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: It should be documented that in 2.x series the file-like object does not support context management protocol. I have added the superseder issue number, please see the note as if you really want in 2.x, how you can have it using contextlib

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: [...] A caveat is that since Python is an object oriented language it is more common than with C that code from a higher level module will be invoked by code from a lower level module, for example by calling an object method that

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-04 Thread Senthil Kumaran
New submission from Senthil Kumaran sent...@uthcode.com: Update the term 'attribute' in the glossary http://docs.python.org/dev/glossary.html#term-attribute so that the reader can understand that the term attribute in Python can mean both 'data-attribute' and a 'callable' method. --

[issue12492] Inconsistent Python find() behavior

2011-07-04 Thread Juan Gonzalez
New submission from Juan Gonzalez juan.gonza...@ti.com: Something really weird going on in python find() string function. When I call string.find() and python returns -1 it crashes when compared against 0 using the operator. The statement in which crash condition occurs is the following:

[issue12493] subprocess: Popen.communicate() doesn't handle EINTR in some cases

2011-07-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: subprocess.Popen.communicate() doesn't catch EINTR error if it is called without timeout and if there is only one PIPE (stdout or stderr). Attached patch fixes these cases. It may need a test. I found this bug while working on

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-07-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: subprocess.check_output() doesn't close explicitly pipes if an error occurs. See for example issue #12493 for an example of an error on .communicate(). Attached patch uses a context manager to ensure that all pipes are always

[issue12495] Rewrite InterProcessSignalTests

2011-07-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: InterProcessSignalTests uses 4 different signal handlers (SIGUSR1, SIGUSR2, SIGALRM, SIGHUP) and uses 2 methods to raise a signal (a subprocess executing kill -SIG pid or signal.alarm(1)). It uses signal.pause() and/or

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: run test_main() ... in a subprocesses I created a new issue for this task: issue #12495. I think that the testcase has to be rewritten. -- ___ Python tracker rep...@bugs.python.org

[issue12440] test_ssl.test_options() failure on Snow Leopard: can't clear options before OpenSSL 0.9.8m

2011-07-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Two problems: (1) on OS X builds, libssl is dynamically linked to _ssl.so so there is a potential disconnect when combining checking versions based on a compile time check (as in _ssl.c) with an execution time check of the actual loaded library (as in

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset aad86a719fc6 by Victor Stinner in branch 'default': Issue #12469: test_signal checks wakeup signals order, except on freebsd6 http://hg.python.org/cpython/rev/aad86a719fc6 -- ___ Python

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset f12b8548b4aa by Victor Stinner in branch 'default': Issue #12469: fix signal order check of test_signal http://hg.python.org/cpython/rev/f12b8548b4aa -- ___ Python tracker

[issue12496] test_ssl test_connect_capath fails with certificate verify failed

2011-07-04 Thread Ned Deily
New submission from Ned Deily n...@acm.org: == ERROR: test_connect_capath (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File

[issue12496] test_ssl test_connect_capath fails with certificate verify failed

2011-07-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7731c900ddce by Ned Deily in branch '3.2': Issue #12496: Install test/capath directory to prevent test_connect_capath http://hg.python.org/cpython/rev/7731c900ddce New changeset 880c3e764ead by Ned Deily in branch 'default': Issue

[issue12496] test_ssl test_connect_capath fails with certificate verify failed

2011-07-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12496 ___

  1   2   >