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

2011-05-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Oops, for liunxthreads, you should of course read different PIDs, not same PID. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-04 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: I agree. Please close the ticket. Thanks, Patrick 2011/5/3 Raymond Hettinger rep...@bugs.python.org Raymond Hettinger raymond.hettin...@gmail.com added the comment: This line should be protected by acquiring the

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11987 ___

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: I can reproduce this only with gcc-4.4.3, so it could also be a compiler bug. Also, the segfault only occurs when python is compiled with optimizations and run under valgrind. hg up 2.7 make distclean ./configure make valgrind

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I can reproduce this only with gcc-4.4.3, so it could also be a compiler bug. You should try to disable compiler optimization: pass -O0 to gcc. E.g. use ./configure --with-pydebug CFLAGS=-O0. -- nosy: +haypo

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

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

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: PydocUrlHandlerTest.test_url_requests() of test_doc checks search?key=pydoc URL. This operation has to load all Python modules to get their documentation. The problem is that loading all modules can have border effects with other

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: By the way, it is NOT POSSIBLE TO UNLOAD modules implemented in C, even if there is no more Python reference to the module. -- ___ Python tracker rep...@bugs.python.org

[issue11996] libpython.py: nicer py-bt output

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: py-bt is too much verbose, I'm unable to read it. Example: $ gdb -args ./python -c 'import time, threading; threading.Thread(target=lambda:time.sleep(3)).start()' ... [New Thread 0x769d9700 (LWP 17193)]

[issue11996] libpython.py: nicer py-bt output

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I would also like a less verbose output for where, especially be able to hidden the value of the globals argument of PyEval_EvalCodeEx. Example of where output: --- (gdb) where #0 sem_wait () at

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do you have a test scipt for us to reproduce the issues? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11990

[issue8498] Cannot use backlog = 0 for sockets

2011-05-04 Thread Daniel Evers
Daniel Evers derm...@googlemail.com added the comment: Thanks for the tip. I added the unit test and uploaded my final patch (which includes all changes). Is it ok to remove the files I uploaded previously? -- Added file: http://bugs.python.org/file21879/backlog0_complete.patch

[issue4106] multiprocessing occasionally spits out exception during shutdown

2011-05-04 Thread Miquel Torres
Miquel Torres tob...@gmail.com added the comment: I can confirm this but with Python 2.7.1 on Ubuntu 11.04 64bit My code was working with a queue that was being fed a two-string tuple. When i changed it to contain my custom Objects, it still worked correctly, but the main program doesn't end

[issue11997] One typo in Doc/c-api/init.rst

2011-05-04 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Yes, i really found a typo. I'll send two patches, one with the typo fixed, and one with the typo fixed and one for which i've :setlocal tw=80:{gq} -- assignee: docs@python components: Documentation messages: 135107

[issue11997] One typo in Doc/c-api/init.rst

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 11997.1.diff only corrects the typo, 11997.2.diff does also reformat. (Note that all of init.rst is hard to read on a 80 column terminal.) -- keywords: +patch Added file: http://bugs.python.org/file21880/11997.1.diff

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: I'm working on signals, especially on pthread_sigmask(), and I'm trying to understand test_signal failures. test_signal fails if the _tkinter module is loaded, because _tkinter loads the Tcl library which create a thread waiting

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #11998 for test_signal and _tkinter issue (test_pydoc + test_signal). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11995

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 88dca05ed468 by Victor Stinner in branch 'default': Issue #11998, issue #8407: workaround _tkinter issue in test_signal http://hg.python.org/cpython/rev/88dca05ed468 -- nosy: +python-dev

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: c) Skip the test if the _tkinter thread is present (...) I opened issue #11998 for the problem with test_signal and the _tkinter module. To get back green buildbots, I commited a workaround: New changeset 88dca05ed468 by Victor

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: As suggested by Antoine, here is a patch to call Tcl_Finalize() in test_signal. You can call create a Tcl/Tk window, destroy it, call _tkinter._finalize(), and then create a new Tcl/Tk window. But call _tkinter._finalize() crashes

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: A quick eyeball of the test doesn't reveal anything obvious: - if the subprocess is failing, it is doing so in such a way that it is still returning a 0 error code and isn't writing anything to stdout (as those assertions are before the check

[issue11834] wrong module installation dir on Windows

2011-05-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: It's always a pleasure. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11834 ___ ___

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Hmm, I probably should have revised the first half of my comment after I had the thought about simple regex + random directory name being potentially problematic. I don't think that theory really counts as obvious, though... --

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: test_mailbox fails sometimes on FreeBSD. Recent example on AMD FreeBSD 8.2 3.x: --- [200/354] test_mailbox test test_mailbox failed -- Traceback (most recent call last): File

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a5890ff5e3d5 by Victor Stinner in branch 'default': Issue #8407: signal.pthread_sigmask() returns a set instead of a list http://hg.python.org/cpython/rev/a5890ff5e3d5 -- ___ Python

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-04 Thread Nicolas Bareil
New submission from Nicolas Bareil n...@chdir.org: When connecting to a SSL server, the certificate verification failed if it has a subjectAltName extension without any dNSName entry inside: it should fallback to the Common Name. Example: cert = conn.getpeercert() cert

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9d5a50e5d8a2 by Ezio Melotti in branch '2.7': #11982: fix json.loads('') to return u'' rather than ''. http://hg.python.org/cpython/rev/9d5a50e5d8a2 -- nosy: +python-dev ___ Python

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! -- resolution: accepted - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11982

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: pending_signals.patch: add pthread_kill(), sigpending() and sigwait() functions with doc and tests. I added many See also in the doc, e.g. os.kill() gives a link to signal.pthread_kill(). Note: the patch renames also

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2011-05-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: test_signal cannot test blocked signals if _tkinter is loaded - test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize() ___ Python tracker rep...@bugs.python.org

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Reopen, test_zlib fails with Python 2.7 on Windows: == ERROR: test_big_buffer (test.test_zlib.ChecksumBigBufferTestCase)

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1ef2a7319849 by Victor Stinner in branch '2.7': Issue #11277: fix issue number in a test_zlib comment http://hg.python.org/cpython/rev/1ef2a7319849 -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: x86 debian parallel 2.7, x86 Ubuntu Shared 2.7 and x86 Tiger 2.7 fail with mmap.error('[Errno 12] Cannot allocate memory').

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I think this relates #6896. Maybe a two second resolution should be tried? -- keywords: +patch nosy: +sdaoden Added file: http://bugs.python.org/file21884/11999.1.diff ___ Python

[issue10946] bdist doesn’t pass --skip-build on to subcommands

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

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d3bd384df8ca by Ezio Melotti in branch '2.7': #11982: remove now unused function. http://hg.python.org/cpython/rev/d3bd384df8ca -- ___ Python tracker rep...@bugs.python.org

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11999 ___ ___

[issue11834] wrong module installation dir on Windows

2011-05-04 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11834 ___ ___ Python-bugs-list

[issue5755] -Wstrict-prototypes is valid for Ada/C/ObjC but not for C++

2011-05-04 Thread Peter Le Bek
Peter Le Bek pe...@hyperplex.net added the comment: distutils reuses whatever flags Python was built with, covered here: http://bugs.python.org/issue1222585 (and here http://bugs.python.org/issue9031). -- nosy: +vokoda ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: error: [Errno 12] Cannot allocate memory @haypo: Well i told you i have no idea. These bots are 32 bit? I'll attach 11277-27.3.diff which does @skipUnless(not 32 bit). Note i'll test against _4G - does this work (on 32 bit and

[issue3526] Customized malloc implementation on SunOS and AIX

2011-05-04 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Another reason why you should not force dlmalloc for all applications linked with libpython is because dlmalloc is (by default) not thread safe, while the system malloc is (generally) thread-safe. It is possible to define a

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-04 Thread Glenn Ammons
New submission from Glenn Ammons glenn.amm...@gmail.com: The string format used in N-triples is very similar to that used in JSON (see http://www.w3.org/TR/rdf-testcases/#ntrip_strings). It would be handy if json.dumps could (optionally) follow the N-triples format. The differences are 1)

[issue11949] Make float('nan') unorderable

2011-05-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, May 3, 2011 at 12:05 PM, Mark Dickinson rep...@bugs.python.org wrote: .. I was thinking of something like the rAssertAlmostEqual method in test_cmath. This one is good. I wonder if it would be appropriate to move

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +ezio.melotti versions: +Python 3.3 -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12001

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you update the docstring as well? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11985 ___

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset affec521b330 by Ezio Melotti in branch '2.7': #11985: update docstring of platform.python_implementation. http://hg.python.org/cpython/rev/affec521b330 New changeset 7bf9d7ae6c94 by Ezio Melotti in branch '3.1': #11985: update

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11985 ___ ___ Python-bugs-list mailing

[issue11993] Use sub-second resolution to determine if a file is newer

2011-05-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: To quote the initial message: If it were desired to determine which file was newer using sub-second values, perhaps that would make a reasonable change in distutils2, but files created with a few microseconds would have to be considered

[issue11991] test_distutils fails because of bad filename match

2011-05-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Closing as duplicate. Please join the discussion at #11340 if you have feedback or a patch :) -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - test_distutils fails because of borked compress

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Are you sure? This looks like #10367 (unsolved yet), not #9199 (fixed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11970 ___

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose off...@offby1.net added the comment: No, not 100% sure, but my read of the 2.7 branch code certainly seemed to suggest that it was fixed. in distutil/commands/upload.py: Line 193 gets the response unconditionally as 'r' from the http object Line 201 uses 'r' to show the response.

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose off...@offby1.net added the comment: ... oh, except I'm an idiot, and I think I'm reading tip code there. Yep, I'm an idiot. Okay, but this is still a dupe of #10367 -- resolution: invalid - duplicate ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected superseder: - python setup.py sdist upload --show-response can fail with UnboundLocalError: local variable 'result' referenced before assignment ___ Python tracker

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-04 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Yes and no, I can give you a single process single child example that just shows that python 3.2 uses binary output while python 3.1 used system default when piping, but trying to reproduce the multiprocessing output inconsistencies

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11994 ___ ___ Python-bugs-list

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: You should try to disable compiler optimization: pass -O0 to gcc. E.g. use ./configure --with-pydebug CFLAGS=-O0. I did, see only occurs when python is compiled with optimizations. :)

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11995 ___

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

2011-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: - what's current_thread_id ? If it's thread_get_ident (pthread_self), since TID is not guaranteed to be inherited across fork, this won't work Ouch, then the approach I'm proposing is probably doomed. And it's true with every lock in the

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2a19d09b08f8 by Antoine Pitrou in branch '3.2': Issue #1856: Avoid crashes and lockups when daemon threads run while the http://hg.python.org/cpython/rev/2a19d09b08f8 New changeset c892b0321d23 by Antoine Pitrou in branch 'default':

[issue11072] Add MLSD command support to ftplib

2011-05-04 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Eric, any further comments about the patch? Can we go on and commit it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11072 ___

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2011-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed in 3.2 and 3.3 now. I don't really want to bother with 2.7 and 3.1 (the GIL implementation is different), but someone can backport the patch if they want to :) -- resolution: - fixed stage: patch review -

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It might be possible to use a part of patch for issue #1674555. A newer version of that patch can be found in:

[issue3526] Customized malloc implementation on SunOS and AIX

2011-05-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Also that addresses the issue of two threads inside different malloc implementations at the same time: it is currently not allowed with PyMem_Malloc. That's not true. You can perfectly have one thread inside PyMem_Malloc while

[issue11954] 3.3 - 'make test' fails

2011-05-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I just ran into this with test_httpserver/Python2.7, which fails if run as root. If I understand correctly this is the main problem here. Jason, do you agree to change the issue title to reflect this? -- nosy: +skrah versions:

[issue11049] add tests for test.support

2011-05-04 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11015 ___ ___ Python-bugs-list

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7f3cab59ef3e by Victor Stinner in branch '2.7': Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits http://hg.python.org/cpython/rev/7f3cab59ef3e -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e6a4deb84e47 by Victor Stinner in branch '2.7': Issue #11277: oops, fix checksum values of test_zlib on 32 bits http://hg.python.org/cpython/rev/e6a4deb84e47 -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @haypo: Oh. Not: if sys.maxsize _4G: # (64 bits system) crc32() and adler32() stores the buffer size into an # int, the maximum filesize is INT_MAX (0x7FFF) filesize = 0x7FFF crc_res =

[issue1516897] Use dynload_shlib on newer HP-UX versions

2011-05-04 Thread Oren Held
Oren Held o...@held.org.il added the comment: ajaksu2: the ticket you referred to fixed it for Darwin only, afaik. HP-UX, regardless of versions, still use the old dynload_hpux.c. -- nosy: +Oren_Held ___ Python tracker rep...@bugs.python.org

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2011-05-04 Thread Oren Held
Changes by Oren Held o...@held.org.il: -- nosy: +Oren_Held ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1487481 ___ ___ Python-bugs-list mailing

[issue665194] datetime-RFC2822 roundtripping

2011-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here is a patch that adds datetime support to email.utils.formatdate. Ultimately the email package will give programs access to datetime+timezone representations of the dates in various headers, so this provides the output end of the

[issue11335] Memory leak after key function failure in sort

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 52fb7dc721ed by Daniel Stutzbach in branch '3.2': #11335: Fix memory leak after key function failure in sort http://hg.python.org/cpython/rev/52fb7dc721ed New changeset 18e43c6acfff by Daniel Stutzbach in branch 'default': #11335:

[issue11335] Memory leak after key function failure in sort

2011-05-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11335

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: GCC 4.4.3 is not the last stable version of the 4.4 branch: try maybe GCC 4.4.6... Changes of GCC 4.4.4, 4.4.5 and 4.4.6: http://gcc.gnu.org/gcc-4.4/changes.html#4.4.6 Or try maybe another major version. --

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

2011-05-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: - what's current_thread_id ? If it's thread_get_ident (pthread_self), since TID is not guaranteed to be inherited across fork, this won't work Ouch, then the approach I'm proposing is probably doomed. Well, it works on Linux with

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-04 Thread Robert Xiao
New submission from Robert Xiao nneon...@gmail.com: On Python 3.2, calling abort() on an ftplib.FTP object will cause an exception: ftp = ftplib.FTP('localhost') ftp.abort() Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python3.2/ftplib.py, line 246, in

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-04 Thread alejandro david weil
New submission from alejandro david weil ten...@gmail.com: Python's documentation includes 2 source codes for alternate xrange implementations, which, at least in my tests, give unexpected results. # from file:///usr/share/doc/python2.6-doc/html/library/functions.html#xrange takewhile(lambda

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi all, IIUIC we are left with issue11015.py3k.testdoc.1.patch) since issue11015.py3k.remove_fcmp.{1,2}.patch has been already applied on default. I just gave a look to the doc patch and it seems fine (it also applies without any warning on

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread John O'Connor
John O'Connor tehj...@gmail.com added the comment: I am new to the community but hoping to start contributing or at least following issues and learning :) I'm looking at bufferediobase_readinto(). What I haven't yet figured out is why .readinto() is (currently) implemented at this layer of

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/5/4 John O'Connor rep...@bugs.python.org: John O'Connor tehj...@gmail.com added the comment: I am new to the community but hoping to start contributing or at least following issues and learning :) I'm looking at

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread Bryce Verdier
Bryce Verdier bryceverd...@gmail.com added the comment: Applied patch cleanly. Also the description reads clearly and makes sense. -- nosy: +louiscipher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8158

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2011-05-04 Thread Quinn Slack
Quinn Slack s...@cs.stanford.edu added the comment: I have updated the patch in hg to address the sections marked TODO (after I submitted a patch to OpenSSL that they depended on). I'll resubmit a patch here in a ~week addressing that issue and those below, to continue pushing this issue

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is an improvement that I think should be committed before 3.2.1. Some comments: +.. function:: run_doctest(module, verbosity=None) + Run :mod:`doctest` on the given *module*. should be, I believe, + Run :func:`doctest.testmod` on the

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Looking at this again, I agree with John. For BufferedIOBase, read() is abstract while readinto() is concrete. That seems backward, and, indeed, it's the opposite of RawIOBase, where readinto() is abstract and read() is concrete.

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c13d2552eb51 by R David Murray in branch '2.7': #8158: add missing 'description' description to optparse docstring. http://hg.python.org/cpython/rev/c13d2552eb51 New changeset f559b88bcaa0 by R David Murray in branch '3.1': #8158:

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks everyone. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11935] MMDF/MBOX mailbox need utime

2011-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Not all system mail spools are mode 1777. Mutt needs to be setgid mail on systems that aren't, if I understand correctly. Making a python program setgid mail is a bit more of security issue than making a well-tested C program setgid,

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
New submission from Ben Morgan benpmor...@gmail.com: PyZipFile.writepy gives internal error on syntax errors in files it processes. For example, in the attached test case: Traceback (most recent call last): File C:\tfs\SDKS\python\Python32\lib\py_compile.py, line 119, in compile

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
Changes by Ben Morgan benpmor...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file21889/pyzipfile-error.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12004 ___

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Eli, do you want to expand this patch further (and how :) or do you think it's still the version you want to commit? Can a core devel, then, give this patch a deeper look? I will review this again in a couple of days and will commit.

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file21890/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11015 ___

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I don't see the problem. You're free to override readinto() and read() in subclasses. readinto() is just implemented in BufferedIOBase as a convenience. -- ___ Python tracker

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

2011-05-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Please disregard my comment on PyEval_ReInitThreads and _after_fork: it will of course still be necessary, because it does much more than just reinitializing locks (e.g. stop threads). Also, note that both approaches don't handle