[issue9523] Improve dbm modules

2011-04-24 Thread ysj.ray
ysj.ray added the comment: Sorry, previous patch(issue_9523_4.diff) missed a file(Lib/test/dbm_tests.py) Here is an intact one. -- Added file: http://bugs.python.org/file21769/issue_9523_5.diff ___ Python tracker _

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2011-04-24 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8326] Cannot import name SemLock on Ubuntu

2011-04-24 Thread Buck Golemon
Buck Golemon added the comment: python2.7.1+ from mercurial supports sem_open (and multiprocessing) just fine. doko: Could you help us figure out why the ubuntu 10.10 python2.7 build has this issue? I believe this issue should be assigned to you? Relevant lines from the config.log: configur

[issue6780] startswith error message is incomplete

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-24 Thread Matt Goodman
Matt Goodman added the comment: You can not pickle individual objects larger than 2**31. This failure is not handled cleanly in the core module, and I suspect masked by above processes. Try piping "a"*(2**31) through you pipe, or pickling it to disk . . . -- nosy: +Matt.Goodman ___

[issue11912] Python shouldn't use the mprotect() system call

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Patch seems good. Ezio, can you commit?. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-lis

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: +1!. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11895] pybench prep_times calculation error

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker ___

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb62908896fe by Jesus Cea in branch 'default': Correctly merging #9319 into 3.3? http://hg.python.org/cpython/rev/bb62908896fe -- ___ Python tracker __

[issue11895] pybench prep_times calculation error

2011-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4fcfb8066ff by Jesus Cea in branch '2.7': pybench prep_times calculation error (closes #11895) http://hg.python.org/cpython/rev/e4fcfb8066ff New changeset 7569870a8236 by Jesus Cea in branch '3.1': pybench prep_times calculation error (closes #118

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: If the child program is static, sandbox protects it using a tracing mechanism (based on ptrace with PTRACE_SYSCALL). Output is debug mode: trace_main tracing: ./static TRACE (pid=10377):trace_main: parent waiting for child (pid=10378) to signal TRACE (pid=1037

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: I close this issue because it is not a Python. I will try to open an issue in Gentoo bugtracker, but now I am too tired to do that :-) -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: If you would like to reproduce sandbox bug: gcc sandbox_exec_bug.c -o sandbox_exec_bug gcc -static static.c -o static sandbox ./sandbox_exec_bug The bug doesn't occur if static.c is not compiled with -static. Note: I don't know if "sandbox ./sandbox_exec_bug"

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: This issue comes from sandbox, not from ctypes. Using sandbox, execv() C function doesn't close files with FD_CLOEXEC flag if the child program is a static program. test_ctypes hangs on find_library() in subprocess.Popen._execute_child(): - create a pipe for

[issue8808] imaplib should support SSL contexts

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8809] smtplib should support SSL contexts

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11916] A few errnos from OSX

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ronaldoussoren components: +Library (Lib), Macintosh -Extension Modules nosy: +ned.deily, ronaldoussoren stage: -> patch review versions: -Python 3.4 ___ Python tracker

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > By the way, I noticed that dictionnaries are never allocated through > pymalloc, since a new dictionnary takes more than 256B... On 64-bit builds indeed. pymalloc could be improved to handle allocations up to 512B. Want to try and write a patch? --

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The MALLOC_MMAP_THRESHOLD improvement is less visible here: $ MALLOC_MMAP_THRESHOLD_=1024 ../opt/python issue11849_test.py *** Python 3.3.0 alpha --- USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND 0 antoine 7703 0.0 0.1 57756

[issue11849] ElementTree memory leak

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: This is definitely a malloc bug. Test with default malloc on a Debian box: cf@neobox:~/cpython$ ./python ../issue11849_test.py *** Python 3.3.0 alpha --- PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND 0 3778 pts/2S+ 0:00

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2011-04-24 Thread Rafael Zanella
Rafael Zanella added the comment: Simple (lazy) test case added. It just replicates one test case of reporthook to work with progresshook. The testcases assume the hard-coded value of blocksize on urllib, maybe it should become a public property. Also commented on diff: http://bugs.python.or

[issue11916] A few errnos from OSX

2011-04-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Pyth

[issue11846] Remove non-guaranteed implementation details from docs.

2011-04-24 Thread Ned Batchelder
Changes by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: (Revision 2c0da1c4f063 mistakenly refers to this issue. This revision is actually for issue #11005.) -- ___ Python tracker __

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +jonash, vapier ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: OK. We will use issue #11915. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: duplicate -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 19d9f0a177de causes that test_ctypes hangs when test suite is run in > Gentoo sandbox. Please reopen this issue. I'd prefer having a separate issue (which you already opened :-)). The fact that all buildbots work fine after the change suggests to me that the

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Moving discussion to issue #11258. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: 19d9f0a177de causes that test_ctypes hangs when test suite is run in Gentoo sandbox. Please reopen this issue. $ sandbox python3.3 -B -m test.regrtest --timeout=10 -v test_ctypes == CPython 3.3a0 (default:020ebe0be33e+, Apr 24 2011, 17:52:

[issue11916] A few errnos from OSX

2011-04-24 Thread Pierre Carrier
New submission from Pierre Carrier : A few errnos from OSX are missing in the eponymous module. --- 8< --- #ifdef EAUTH inscode(d, ds, de, "EAUTH", EAUTH, "Authentication error"); #endif #ifdef EBADARCH inscode(d, ds, de, "EBADARCH", EBADARCH, "Bad CPU type in executable"); #endif #ifdef

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: The commit: New changeset 2c0da1c4f063 by Victor Stinner in branch 'default': Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the http://hg.python.org/cpython/rev/2c0da1c4f063 -- ___ Python

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 996b9c9dc10a by Victor Stinner in branch 'default': Issue #11005, issue #11915: fix issue number of commit 2c0da1c4f063. http://hg.python.org/cpython/rev/996b9c9dc10a -- nosy: +python-dev ___ Python trac

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: > Is the assert still needed? The assertion is in RLock()._acquire_restore(), not in RLock._release_save(). I prefer to keep it, it doesn't hurt. close this issue because I commited my fix. -- resolution: -> fixed status: open -> closed __

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c0da1c4f063 by Victor Stinner in branch 'default': Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the http://hg.python.org/cpython/rev/2c0da1c4f063 -- nosy: +python-dev ___ Pyt

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It's a source tarball of sandbox implementation used by default in Gentoo. Sandbox is enabled during building/testing/installation of all packages in Gentoo. Sandbox e.g. disallows write access to directories outside of build directory (e

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor added the comment: > http://gentoo.osuosl.org/distfiles/sandbox-2.5.tar.xz What is this file? Where does it come from? -- nosy: +haypo ___ Python tracker ___ ___

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: wget http://gentoo.osuosl.org/distfiles/sandbox-2.5.tar.xz tar -xJf sandbox-2.5.tar.xz cd sandbox-2.5 ./configure make make install -- ___ Python tracker

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: What do you call "sandbox" ? Also, would be nice if you investigated a bit more about the causes. From the traceback, it looks like the child process is stuck inside exec(). -- ___ Python tracker

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Reverting of 19d9f0a177de is sufficient to avoid this problem. -- ___ Python tracker ___ _

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : After 19d9f0a177de and 020ebe0be33e, test_ctypes hangs when test suite is run in sandbox. This problem occurs only in Python 3.3. $ sandbox python3.3 -B -m test.regrtest --timeout=10 -v test_ctypes == CPython 3.3a0 (default:020ebe0be33e

[issue8065] Memory leak in readline.get_current_history_length

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, I tried Alexander's tests on the buildbots and it failed on OS X Leopard: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%20custom/builds/12/steps/test/logs/stdio but succeeded on OS X Tiger: http://www.python.org/dev/buildbot/al

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: PS: I don't think there's a problem with the "_windows" name, as long as wxPython doesn't depend on a *toplevel* module named "_windows". -- ___ Python tracker __

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Amaury that it would be better in Modules. In my experience, code that is in PC/ is a pain to discover. A couple of nits about the patch: - the functions in the PyMethodDef array could be sorted alphabetically - the defint() macro isn't necessary,

[issue1062277] Pickle breakage with reduction of recursive structures

2011-04-24 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue1346874] httplib simply ignores CONTINUE

2011-04-24 Thread Carl Nobile
Carl Nobile added the comment: I have run into this same issue. It does violate RFC2616 in section 4.3 "All 1xx (informational), 204 (no content), and 304 (not modified) responses MUST NOT include a message-body. All other responses do include a message-body, although it MAY be of zero length

[issue10914] Python sub-interpreter test

2011-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Sounds good. I still have that embedded pickle module issue to deal with, and this should let me actually add a test for it along with the fix. -- ___ Python tracker __

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unless someone objects, I would like to commit that latest patch, since at least it enables the start of a regression suite for Python embedding. (it also allowed me to notice how crufty and incredibly obscure the getpath.c mechanisms are) -- ___

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: After wrestling with startup issues on the OS X buildbots, here is a new patch, tested on several different UNIX platforms. -- Added file: http://bugs.python.org/file21765/embedtest2.patch ___ Python tracker

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-04-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: > I believe ActiveState handle this by making the PATH modification > optional and having it off by default (I found docs for ActivePerl > stating this explicitly, but no equivalent for ActivePython). ActivePython 2.x has it on by default. -- __

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Kasun Herath
Kasun Herath added the comment: Yes this is a repeatable error. My timezone is GMT + 5:30. The test fails even if the last element of 'calendar.timegm's tuple is changed to 0 or 1 but pass if the function is changed as follows print calendar.timegm((1999, 12, 31, 23, 30, 0, -1, -1, -1))

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-24 Thread higery
Changes by higery : Added file: http://bugs.python.org/file21764/test_manifest_reading_sdist_v2.diff ___ Python tracker ___ ___ Python-bugs-l

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6780] startswith error message is incomplete

2011-04-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review stage: needs patch -> patch review versions: +Python 3.3 ___ Python tracker ___ __

[issue11697] Unsigned type in mmap_move_method

2011-04-24 Thread Rafael Zanella
Rafael Zanella added the comment: Seems like it should use size_t since it deals with memory location/obj size, but Python doesn't have size_t only ssize_t, and ssize_t is signed... "m.move(2**32, 10, 4) # Should throw a ValueError" <- Won't it wrap around and become 0 once truncated ? I'v

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Sébastien: I'm chiming in late, but doesn't AIX have something like LD_PRELOAD? Why not use it to transparently replace AIX's legacy malloc by another malloc implementation like dlmalloc or ptmalloc? That would not require any patching of Python, and c

[issue11912] Python shouldn't use the mprotect() system call

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: PaX doesn't block mprotect in itself, but prevents pages from being both writable and executable. Andreas's right, it's probably due to a dlopen of an object requiring executable stack via ctypes. So you should report this to iotop's developpers. In t

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Now, another factor to consider is that Windows 7 makes manipulating the system PATH even more difficult to do correctly (e.g. see http://www.symantec.com/connect/forums/wise-7-win-7-problems-updating-environment-variable-current-user). I believe ActiveState ha

[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: If it is being requested every few months, then we should reconsider rejecting it. I have now reopened #3561 instead of this one. -- ___ Python tracker _

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening this issue since #9228 was closed as a duplicate of this one. Given the significant level of user demand for this behaviour, it should NOT be closed again until a PEP has been written and either accepted or rejected. If such a PEP is not written and c