[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2012-11-29 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +daniel.urban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16572 ___ ___

[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-29 Thread Václav Šmilauer
Václav Šmilauer added the comment: I am sorry for the initial confusion. python27.dll is really linked against MSVCR90. Its path, though, is c:\windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa83d7e3c\MSVCR90.DLL, and perhaps is a different one found at

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-11-29 Thread Stefan Krah
Stefan Krah added the comment: The gdb version is GNU gdb (GDB) Fedora (7.3.50.20110722-16.fc16), which looks like either a pre-release of 7.4 or a patched version. Testing for (gdb_major_version, gdb_minor_version) = (7, 3) would fix the specific failure on Fedora 16, but I don't know if it

[issue7976] warnings should provide a public API for accessing its option parsing code

2012-11-29 Thread Bruno Dupuis
Bruno Dupuis added the comment: Ok, changes made. I also updated the tests -- Added file: http://bugs.python.org/file28158/warnings_opt_parse_API-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7976

[issue16574] clarify policy on updates to final peps

2012-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: 1. I think that the PEP author has the final say as to what specific text goes into the PEP. Contributors shouldn't modify other people's PEP without consent from the author(s). 2. This holds for all stages, including the Final stage. If the PEP author

[issue16477] tarfile fails to close file handles in case of exception

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Serhiy -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16477

[issue16477] tarfile fails to close file handles in case of exception

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7bdc0b3c2fe by Andrew Svetlov in branch '3.2': Issue #16477: Close tarfile internal handlers in case of exception. http://hg.python.org/cpython/rev/b7bdc0b3c2fe New changeset 80749ddc30b6 by Andrew Svetlov in branch '3.3': Merge issue #16477:

[issue16574] clarify policy on updates to final peps

2012-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2012, at 12:16 PM, Martin v. Löwis wrote: 1. I think that the PEP author has the final say as to what specific text goes into the PEP. Contributors shouldn't modify other people's PEP without consent from the author(s). 2. This holds for all

[issue16565] Increase Py_AddPendingCall array size

2012-11-29 Thread Felipe Cruz
Felipe Cruz added the comment: Running test_aio_read [New Thread 0x77ff7700 (LWP 20681)] [New Thread 0x761ff700 (LWP 20682)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x761ff700 (LWP 20682)] sem_post () at

[issue16577] Suspect test.test_codeccallbacks.test_mutatingdecodehandler

2012-11-29 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: The test created by 504084c04ac0 passes for bad reasons, at least for the second part: - test.mutating error handler is never used. - If I replace the last line of the test, it still passes, but the TypeError is raised by exc.object[:] = b (bytes are

[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think further investigation should require analysing the crash in a debugger. It may well be that the crash is completely unrelated to msvcrt. -- ___ Python tracker rep...@bugs.python.org

[issue16323] Wrong C API documentation for locale encoding

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset af45e9ec35f0 by Andrew Svetlov in branch '3.3': Remove redundant sentence from c-api docs (issue #16323) http://hg.python.org/cpython/rev/af45e9ec35f0 New changeset efedd0f62a7e by Andrew Svetlov in branch 'default': Merge: remove redundant

[issue16323] Wrong C API documentation for locale encoding

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Removed bad sentence. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16323 ___ ___ Python-bugs-list mailing

[issue16565] Increase Py_AddPendingCall array size

2012-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it with a debug Python build? `PyThread_release_lock (lock=0x0)` is a bit worrying. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16565 ___

[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-11-29 Thread Robin Schreiber
Robin Schreiber added the comment: Take a look at the discussion in Issue 15653. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15650 ___ ___

[issue16565] Increase Py_AddPendingCall array size

2012-11-29 Thread Felipe Cruz
Felipe Cruz added the comment: Yes! 2.7.3 build with pydebug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16565 ___ ___ Python-bugs-list

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think it should not be fixed in 2.7, so I guess to close the issue as wontfix. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16194 ___

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-11-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: The behaviour won't change in 2.7, but the docs at http://docs.python.org/2/library/imp.html#imp.load_dynamic still need to be clarified. e.g. add a note like: Note: the import internals identify extension modules by filename, so doing ``foo =

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: One nice feature of this is the potential to simplify single-file distribution - pack your application into a zip file, and only need to extract a single shared library for *all* your extension modules, which could be handled via a utility function called in

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed doc patch. Nick, is it good for you? -- Added file: http://bugs.python.org/file28159/issue16194.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16194

[issue7976] warnings should provide a public API for accessing its option parsing code

2012-11-29 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- hgrepos: +161 Added file: http://bugs.python.org/file28160/warnings_opt_parse_API-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7976

[issue16573] 2to3 should treat enumerate like sorted for zip, map, filter, dict, xrange

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c6d8461b09f by Benjamin Peterson in branch '3.2': enumerate only requires an iterable (closes #16573) http://hg.python.org/cpython/rev/3c6d8461b09f New changeset 4ff17cf130eb by Benjamin Peterson in branch '3.3': merge 3.2 (#16573)

[issue16573] 2to3 should treat enumerate like sorted for zip, map, filter, dict, xrange

2012-11-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16573 ___ ___

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-11-29 Thread Bruno Dupuis
Bruno Dupuis added the comment: This solution hides the risk of metaclass conflicts, as the user did not explicitly set the metaclass. IMO, this risk should be clearly told in the Doc. -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org

[issue16565] Increase Py_AddPendingCall array size

2012-11-29 Thread Felipe Cruz
Felipe Cruz added the comment: Without debug backtrace #0 sem_post () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S:34 #1 0x004d456e in PyGILState_Release () #2 0x759b9cdc in notify_func_wrapper (arg=0x78c0) at ../sysdeps/pthread/aio_notify.c:45 #3

[issue16549] regression: -m json.tool module is broken

2012-11-29 Thread anatoly techtonik
anatoly techtonik added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16549 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16577] Suspect test.test_codeccallbacks.test_mutatingdecodehandler

2012-11-29 Thread Walter Dörwald
Walter Dörwald added the comment: True, the second test uses the wrong error handler. And yes, you're correct, bytes are now immutable. And even if I try to decode a bytearray, what the callback gets to see is still an immutable bytes object:: import codecs def mutating(exc): if

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-29 Thread Brett Cannon
Brett Cannon added the comment: Are you still planning on committing this, Andrew? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16421 ___ ___

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Brett Cannon
Brett Cannon added the comment: The doc patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16194 ___ ___ Python-bugs-list mailing list

[issue6835] doctest problem with decorated function when decorator is defined in separate file

2012-11-29 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6835 ___ ___ Python-bugs-list

[issue16578] Regular expressions with empty named groups breaks isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
New submission from Gabriel Rodríguez Alberich: import re re.compile((?P)) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.7/re.py, line 190, in compile return _compile(pattern, flags) File /usr/lib/python2.7/re.py, line 240, in _compile p =

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Changes by Gabriel Rodríguez Alberich che...@gmail.com: -- title: Regular expressions with empty named groups breaks isname check - Regular expressions with empty named groups break isname check ___ Python tracker rep...@bugs.python.org

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-11-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___ ___ Python-bugs-list mailing

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue12759. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16578 ___ ___

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Gabriel Rodríguez Alberich added the comment: Uh, sorry about that. Thanks. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16578 ___

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Gabriel Rodríguez Alberich
Changes by Gabriel Rodríguez Alberich che...@gmail.com: -- resolution: - duplicate ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16578 ___ ___

[issue16578] Regular expressions with empty named groups break isname check

2012-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - committed/rejected superseder: - (?P=) input for Tools/scripts/redemo.py raises unnhandled exception ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16578

[issue16579] .pyw disturb multiprocessing behavior

2012-11-29 Thread Alex stein
New submission from Alex stein: I made a software synchronizing every 2 seconds files from the network through SSH using Paramiko library. The software works normally on Linux and Windows 32 and 64 bits (never tried on Mac). At the office, I use Windows XP 32 bits: By comfort I made a link

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94de77bd0b4b by Andrew Svetlov in branch '2.7': Issue #16194: document imp.load_dynamic problems http://hg.python.org/cpython/rev/94de77bd0b4b -- nosy: +python-dev ___ Python tracker

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Documentation is fixed, behavior cannot be changed. Close the issue -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16579] .pyw disturb multiprocessing behavior

2012-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Unless you give more information, this is unlikely to be a bug in Python. - Is your program running with Python 2? - When it runs as a .py file, does it print to the console? If both answers are yes, keep in mind that there is no console with a .pyw

[issue16580] Add examples to int.to_bytres and int.from_bytes

2012-11-29 Thread Paddy McCarthy
New submission from Paddy McCarthy: http://docs.python.org/3.3/library/stdtypes.html?highlight=to_bytes#int.to_bytes and http://docs.python.org/3.3/library/stdtypes.html?highlight=to_bytes#int.to_bytes would benefit from an example showing what they do based on simpler coding. I have such an

[issue15990] solidify argument/parameter terminology

2012-11-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching a 2.7 version of the patch for this issue. From the patch committed to Python 3, I removed mention of keyword-only parameters, inspect.Parameter, and PEP 362 (because all are specific to Python 3). -- Added file:

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-11-29 Thread Stefan Krah
Stefan Krah added the comment: I'm using the .gdbinit solution on the Fedora buildbot now. Trying to categorize gdb pre-releases and patched versions is probably not a good use of time. ;) -- ___ Python tracker rep...@bugs.python.org

[issue16467] frozen importlib required for extending Python interpreter not public

2012-11-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16467 ___ ___ Python-bugs-list mailing list

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-11-29 Thread Dave Malcolm
Dave Malcolm added the comment: In my Fedora Python packages I've been applying this patch: http://pkgs.fedoraproject.org/cgit/python.git/plain/00156-gdb-autoload-safepath.patch which uses this code fragment to detect if gdb has the autoload safe path code, rather than trying to guess it from

[issue16574] clarify policy on updates to final peps

2012-11-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the feedback. I will post here a devguide patch to include some of this information in the devguide. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16574

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-29 Thread Matthias Klose
Matthias Klose added the comment: looks fine, just one more minor issue: please use @LIBPL@ directly. there's no feedback from others, so I think this should go in as the extra script first, and not replace the original one immediately. -- ___

[issue16235] Add python-config.sh for use during cross compilation.

2012-11-29 Thread Matthias Klose
Matthias Klose added the comment: oh, the equivalent for flags = ['-I' + sysconfig.get_path('include'), '-I' + sysconfig.get_path('platinclude')] is still missing. I know that both scripts versions are only run post-install, but let's have the same output.

[issue16581] define PEP editor in PEP 1

2012-11-29 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to define PEP editor (or PEP editors) in PEP 1 before it is used in the document and to provide certain clarifying information. In particular, PEP 1 should say whether editorship is an invitation-only status and/or how one becomes a PEP

[issue15990] solidify argument/parameter terminology

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f44b8d69e5fc by Chris Jerdonek in branch '2.7': Backport from 3.2: improve argument/parameter documentation (issue #15990). http://hg.python.org/cpython/rev/f44b8d69e5fc -- nosy: +python-dev ___ Python

[issue15990] solidify argument/parameter terminology

2012-11-29 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15990

[issue14621] Hash function is not randomized properly

2012-11-29 Thread Łukasz Rekucki
Łukasz Rekucki added the comment: Note that a few weeks ago, Ruby has switched from Murmur to SipHash for this exact reason: http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/ -- nosy: +Łukasz.Rekucki ___ Python tracker