[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 021ca321b26e by Georg Brandl in branch '3.3': Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL http://hg.python.org/cpython/rev/021ca321b26e New changeset d3a13a7be9e9 by Georg Brandl in branch 'default': #19227: merge with 3.3 h

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: OK, I'm going to apply atfork_prepare.patch for 3.3.3rc1. If there is any indication of a continuing problem, we'll revert the whole re-seeding code for the final. -- ___ Python tracker

[issue16037] httplib: header parsing is unlimited

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue16040] nntplib: unlimited readline() from connection

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue16039] imaplib: unlimited readline() from connection

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue16041] poplib: unlimited readline() from connection

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16040] nntplib: unlimited readline() from connection

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc88bd80d925 by Georg Brandl in branch '3.3': Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to http://hg.python.org/cpython/rev/fc88bd80d925 -- ___ Python tracker

[issue16037] httplib: header parsing is unlimited

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e445d02e5306 by Georg Brandl in branch '3.3': Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than http://hg.python.org/cpython/rev/e445d02e5306 -- ___ Python tracker

[issue16041] poplib: unlimited readline() from connection

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68029048c9c6 by Georg Brandl in branch '3.3': Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to http://hg.python.org/cpython/rev/68029048c9c6 -- ___ Python tracker

[issue16039] imaplib: unlimited readline() from connection

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b0364fc5711 by Georg Brandl in branch '3.3': Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limit http://hg.python.org/cpython/rev/4b0364fc5711 -- ___ Python tracker

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10d0edadbcdd by Georg Brandl in branch '3.3': Issue #17997: Change behavior of ``ssl.match_hostname()`` to follow RFC 6125, http://hg.python.org/cpython/rev/10d0edadbcdd -- nosy: +python-dev ___ Python tr

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suppose that some tests (e.g. test_genexps.py) still fail with -O2. -- ___ Python tracker ___ __

[issue19405] Fix outdated comments in the _sre module

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue19329] Faster compiling of charset regexpes

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue19329] Faster compiling of charset regexpes

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5498d9d9bb0 by Serhiy Storchaka in branch 'default': Issue #19329: Optimized compiling charsets in regular expressions. http://hg.python.org/cpython/rev/d5498d9d9bb0 -- nosy: +python-dev ___ Python track

[issue19405] Fix outdated comments in the _sre module

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7f71babc622 by Serhiy Storchaka in branch '2.7': Issue #19405: Fixed outdated comments in the _sre module. http://hg.python.org/cpython/rev/b7f71babc622 New changeset 220e3e40d176 by Serhiy Storchaka in branch '3.3': Issue #19405: Fixed outdated co

[issue18861] Problems with recursive automatic exception chaining

2013-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: raise ... from None explictly silences the printing of exception context, so I don't see the problem. -- ___ Python tracker ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-26 Thread Georg Brandl
Georg Brandl added the comment: #19227 must be solved before anything is backported to the security branches. -- dependencies: +test_multiprocessing_xxx hangs under Gentoo buildbots ___ Python tracker _

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: On my Fedora system, test_gdb still fails when --without-doc-strings is configured, even after updating the decorator to cover both C and Python docstrings as an interim fix. That may be a real bug, though (see issue 19415 for details) Regarding splitting the f

[issue19415] test_gdb fails when using --without-doc-strings on Fedora 19

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: (after a "make clobber" to ensure there weren't any stale artifacts lying around) $ ./configure --without-doc-strings && make && ./python -m test -v test_gdb == FAIL: test_lists (test.test_g

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0bf4cf62f14c by Ned Deily in branch '3.3': Issue #15663: Force IDLE.app to run the GUI process in 32-bit mode. http://hg.python.org/cpython/rev/0bf4cf62f14c New changeset b6a1a78818fe by Ned Deily in branch 'default': Issue Issue #15663: merge from

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1927b7c01c78 by Nick Coghlan in branch 'default': Mitigate #19412: restore test skips for --without-doc-strings http://hg.python.org/cpython/rev/1927b7c01c78 -- nosy: +python-dev ___ Python tracker

[issue19413] Reload semantics changed unexpectedly in Python 3.3

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: It's actually even simpler than that - we can just go back to ignoring the __loader__ attribute entirely and always searching for a new one, since we want to pick up changes to the import hooks, even for modules with a __loader__ already set (which is almost all

[issue18861] Problems with recursive automatic exception chaining

2013-10-26 Thread Nikolaus Rath
Nikolaus Rath added the comment: *ping* No one any comments on this at all? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19414] OrderedDict.values() behavior for modified instance

2013-10-26 Thread Nikolaus Rath
Nikolaus Rath added the comment: After thinking about this a bit more, I think this is actually a true bug in OrderedDict(), and only option (a) or be (b) really fix it. Rationale: I would expect that for any OrderedDict d, and any function modify_dict(d), the following assertion holds: for

[issue19414] OrderedDict.values() behavior for modified instance

2013-10-26 Thread Nikolaus Rath
New submission from Nikolaus Rath: The documentation says the following about modifying a dict while iterating through its view: | Iterating views while adding or deleting entries in the dictionary may | raise a RuntimeError or fail to iterate over all entries. (http://docs.python.org/3/library/

[issue19413] Reload semantics changed unexpectedly in Python 3.3

2013-10-26 Thread Eric Snow
New submission from Eric Snow: PJE brought up concerns on python-dev regarding PEP 451 and module reloading. [1] However, the issue isn't with the PEP changing reload semantics (mostly). Those actually changed with the switch to importlib (and a pure Python reload function) in the 3.3 releas

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I'll do an initial quick fix that also turns off HAVE_DOCSTRINGS when C level docstrings are missing, before working on a large patch to split it into two separate flags. -- assignee: -> ncoghlan ___ Python tracker

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-26 Thread Christian Heimes
Christian Heimes added the comment: Nick, can you do another review? All tests should pass on common boxes. The latest code hides the struct with the hash function. I have added a configure block that detects platforms that don't support unaligned memory access. It works correctly on the SPARC

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-26 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file32384/31ce9488be1c.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file32365/38b3ad4287ef.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue19404] Simplify per-instance control of help() output

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: As far as I am aware, never. But "instance.__doc__" falls back to the class, hence the != check rather than "is not None". -- ___ Python tracker _

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL kinda takes care of that. The PRNG mixes the PID into the seed so parent and child won't see the same output. The patch fixes a slightly more tricky issue: - parent initializes PRNG but never touches the PRNG again - parent forks lots of child proces

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: Won't using a prepare handler mean that the parent and child processes will use the same seed until one or other of them forks again? -- ___ Python tracker __

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Christian Heimes
Christian Heimes added the comment: I wasn't talking about unlock_ssl_locks.patch but yet another patch. Anyway neither Python 2.7.6 nor 3.3.3 should be released with the current pthread_atfork() handler. We still don't understand the cause of the hanging buildbot but evidence points towards t

[issue5309] distutils doesn't parallelize extension module compilation

2013-10-26 Thread Christian Heimes
Christian Heimes added the comment: Antoine's patch doesn't work for a fresh copy of Python - add import error report to build_ext parallel (distutils doesn't use logging and doesn't have a working log.exception() function) - make time a builtin module - add hack for concurrent.futures.process

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-10-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file32349/import-system-reference.diff ___ Python tracker ___ ___ Python-bugs-list

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-10-26 Thread Eric Snow
Eric Snow added the comment: Here's an update of the language reference patch based on Brett's comments. -- Added file: http://bugs.python.org/file32381/import-system-reference.diff ___ Python tracker _

[issue13785] Make concurrent.futures.Future state public

2013-10-26 Thread Juan Javier
Changes by Juan Javier : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15634] Add serialized decorator to the threading module

2013-10-26 Thread Juan Javier
Juan Javier added the comment: It looks like this is not very interesting after all. -- status: open -> closed ___ Python tracker ___

[issue13785] Make concurrent.futures.Future state public

2013-10-26 Thread Juan Javier
Juan Javier added the comment: Hi Brian, No, no progress on this. I think this is not an interesting feature after all. You can close this. Juan Javier -- ___ Python tracker _

[issue5309] distutils doesn't parallelize extension module compilation

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch which only enables parallel building in setup.py. -- Added file: http://bugs.python.org/file32380/build_ext_parallel2.patch ___ Python tracker _

[issue19405] Fix outdated comments in the _sre module

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 2.7 SRE_CODE is 32-bit too (since issue1160). Only last chunk in Lib/sre_compile.py patch shouldn't apply to 2.7. -- ___ Python tracker __

[issue19085] Add tkinter basic options tests

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch fixes issues for Tk 8.4 and skipped ttk.Scrollbar test on MacOSX. I have increased the priority because many Tkinter issues will benefit from these tests. -- priority: normal -> high ___ Python track

[issue19085] Add tkinter basic options tests

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32379/tkinter_options_tests_2.patch ___ Python tracker ___ ___ Python-bug

[issue19405] Fix outdated comments in the _sre module

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me, except that it probably shouldn't apply to 2.7 (does it?). -- ___ Python tracker ___ _

[issue5309] distutils doesn't parallelize extension module compilation

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a working patch. -- keywords: +patch Added file: http://bugs.python.org/file32378/build_ext_parallel.patch ___ Python tracker ___ ___

[issue10241] gc fixes for module m_copy attribute

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you identify which objects those leaks point to? The sys module is cleared at shutdown. -- ___ Python tracker ___ __

[issue11161] futures.ProcessPoolExecutor hangs

2013-10-26 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> committed/rejected versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue10241] gc fixes for module m_copy attribute

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: I'm getting a couple of Valgrind leaks, starting with 1edff836c954: valgrind --suppressions=Misc/valgrind-python.supp --leak-check=full ./python -c "pass" All of them seem to be in _PySys_Init(). -- nosy: +skrah Added file: http://bugs.python.org/file32

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-l

[issue19395] unpickled LZMACompressor is crashy

2013-10-26 Thread Nadeem Vawda
Nadeem Vawda added the comment: It looks like there's also a separate problem in the multiprocessing module. The following code hangs after hitting a TypeError trying to pickle one of the TextIOWrapper objects: import multiprocessing def read(f): return f.read() files = [open(path)

[issue19404] Simplify per-instance control of help() output

2013-10-26 Thread Ethan Furman
Ethan Furman added the comment: Would it make sense to have the presence of a non-None __doc__ be a deciding factor? How often does an instance have a docstring where one would want the class info instead? -- ___ Python tracker

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for separate flags with appropriate names and skip messages. It should only be the usage in test_contextlib which needs to be migrated to the Python flags, although the C usage may be more widespread. (The other Python cases are currently checking the optimisat

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: For reference see #17041 and msg180774. Separating the decorators makes things clearer (after all we're dealing with extremely obscure features here), merging them could mean less work. -- ___ Python tracker

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: Yeah, HAVE_DOCSTRINGS was added when we were not sure whether to skip C and Python docstrings separately. I agree that the right thing is to have both requires_c_docstrings and requires_py_docstrings. -- ___ Python trac

[issue18734] Berkeley DB versions 4.4-4.9 are not discovered by setup.py

2013-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay. I made the check less dumb. Maybe it works... -- priority: release blocker -> normal ___ Python tracker ___ ___

[issue18734] Berkeley DB versions 4.4-4.9 are not discovered by setup.py

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset fae0a09f0f60 by Benjamin Peterson in branch '2.7': check for berkelydb versions besides 4.3 (#18734) http://hg.python.org/cpython/rev/fae0a09f0f60 -- nosy: +python-dev ___ Python tracker

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Tim Peters
Tim Peters added the comment: Think this is related to why the FreeBSD default buildbot is always failing now? http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/5619/steps/test/logs/stdio Like: File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_ge

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Alternatively, if the affected tests should also be skipped under -OO, then I think changing the current definition of HAVE_DOCSTRINGS would also work: MISSING_C_DOCSTRINGS = (check_impl_detail() and sys.platform != 'win32' and

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: It is *not* OK to have a "test.support.HAVE_DOCSTRINGS" flag that is true under -OO, nor a requires_docstrings decorator that still attempts to run the test under those conditions. Issue 19330 updated them so their meaning matched their names and the surround

[issue19393] symtable.symtable can return the wrong "top" SymbolTable

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc259b221cb8 by Benjamin Peterson in branch '3.3': just return toplevel symbol table rather than all blocks (closes #19393) http://hg.python.org/cpython/rev/bc259b221cb8 New changeset f1b7b5979e96 by Benjamin Peterson in branch '2.7': just return to

[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

2013-10-26 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: http://docs.python.org/3.4/library/binascii.html#binascii.hexlify -- assignee: docs@python components: Documentation messages: 201376 nosy: Devin Jeanpierre, docs@python priority: normal severity: normal status: open title: binascii.hexlify docs say

[issue4331] Add functools.partialmethod

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I like your suggestion of not providing __call__(), as I don't see a way to make it work with arbitrary underlying descriptors, and neither classmethod nor staticmethod is callable. In terms of usage, I think this approach will be OK, as in practice I expect @c

[issue19408] Regex with set of characters and groups raises error

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine and Victor. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker __

[issue19408] Regex with set of characters and groups raises error

2013-10-26 Thread Matthew Barnett
Matthew Barnett added the comment: The traceback says "bad character range" because ord('+') == 43 and ord('*') == 42. It's not surprising that it complains if the range isn't valid. -- ___ Python tracker

[issue19395] unpickled LZMACompressor is crashy

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: If it's not possible (or easily doable) to recreate the compressor's internal state, I agree it would be helpful for pickling to raise a TypeError. -- ___ Python tracker _

[issue19393] symtable.symtable can return the wrong "top" SymbolTable

2013-10-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue19393] symtable.symtable can return the wrong "top" SymbolTable

2013-10-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-l

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose this issue can be fixed then. Thanks for doing this! -- ___ Python tracker ___ ___ Python-

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Your patch adds a child process atfork handler, which definitely isn't executed in the parent -- ___ Python tracker ___

[issue19397] test_pydoc fails with -S

2013-10-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch based on Serhiy's suggestion. -- Added file: http://bugs.python.org/file32376/fix_test_pydoc_with_S_flag_v2.patch ___ Python tracker __

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Something else we may be able to fix (albeit probably not in 3.4): several of the issues noted in PEP 395 (since __main__.__spec__.name will give the real module name, even when __name__ is set to "__main__" or otherwise modified) -- ___

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-26 Thread Christian Heimes
Christian Heimes added the comment: I still don't get it. All arguments are about "don't execute async unsafe code after fork()". But the child process does *not* execute *any* code after fork. It's just the parent process that executes its handler. --

[issue19410] Restore empty string special casing in importlib.machinery.FileFinder

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: As noted on python-dev, while changing PathFinder to expand the empty string to the current working directory is a good idea, removing the '' special case handling in FileFinder may break subclasses and other custom metapath hooks that expect the current behav

[issue4331] Add functools.partialmethod

2013-10-26 Thread alon horev
alon horev added the comment: Here's another attempt at a consistent api with regular methods. I'm contemplating whether partialmethod should support __call__. Given the fact partial is used to bind positional arguments, it will do the 'wrong' thing when calling the partialmethod directly and

[issue19404] Simplify per-instance control of help() output

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19031 is a report indicating that this is a problem for Enum instances as well. -- ___ Python tracker ___ _

[issue19031] Make help() enum aware

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I proposed a possible solution for this in issue 19404 -- nosy: +ncoghlan ___ Python tracker ___ ___ P

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I checked the other modules that previously imported imp, and they're all fine. -- ___ Python tracker ___

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I figured out which commit broke it, too: the one that deprecated the imp module (see http://hg.python.org/cpython/rev/1b8f08c4efd5) Previously, the importlib.machinery dependency was satisfied indirectly through imp. -- ___

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c0cbba64b7b by Nick Coghlan in branch 'default': Close #19409: add missing import in pkgutil http://hg.python.org/cpython/rev/0c0cbba64b7b -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Turns out the relevant import is just plain missing from pkgutil, and we didn't notice because so many other things import it :P -- ___ Python tracker __

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Also "make clobber" and a rebuild didn't fix it. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19403] Make contextlib.redirect_stdout reentrant

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I think this change also makes for nicer examples of reentrant (using the updated redirect_stdout) and reusable-but-not-reentrant (using ExitStack) behaviour in the docs. -- keywords: +patch Added file: http://bugs.python.org/file32375/issue19403_reentr

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Changes by Donald Stufft : Removed file: http://bugs.python.org/file32373/draft2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Changes by Donald Stufft : Removed file: http://bugs.python.org/file32371/draft.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Donald Stufft added the comment: Added a third draft, this one adds the script to check if pip needs updated. I've removed the first two drafts to make it simpler. -- Added file: http://bugs.python.org/file32374/draft3.diff ___ Python tracker

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I'm seeing the same symptom locally. If you use -m to execute things, the problem isn't noticeable because runpy imports importlib.machinery. It looks like test.regrtest imports it as well: $ ./python -m test test_pkgutil [1/1] test_pkgutil 1 test OK. $ ./python

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Donald Stufft
New submission from Donald Stufft: Currently pkgutil cannot be imported unless you first import importlib.machinery. This means ./python.exe -m pkgutil works, but doing ``import pkgutil`` in the REPL does not. -- messages: 201355 nosy: dstufft, larry priority: release blocker severity:

[issue19408] Regex with set of characters and groups raises error

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From re documentation: """Ranges of characters can be indicated by giving two characters and separating them by a '-', for example [a-z] will match any lowercase ASCII letter, [0-5][0-9] will match all the two-digits numbers from 00 to 59, and [0-9A-Fa-f]

[issue19353] on RHEL6 simple build fails with test_linux_constants (test.test_resource.ResourceTest)

2013-10-26 Thread Brett Cannon
Brett Cannon added the comment: Since the test now passes I'm going to close this as fixed. -- assignee: -> brett.cannon resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Donald Stufft added the comment: Added a second draft that handles the case when the stdlib isn't directly browseable (e.g. it's zipped up or something). -- Added file: http://bugs.python.org/file32373/draft2.diff ___ Python tracker

[issue19408] Regex with set of characters and groups raises error

2013-10-26 Thread Isis Binder
New submission from Isis Binder: I was working on some SPOJ exercises when the regex module hit me with an error related to '*' being used inside the character set operator. I looked in the module docs but it says: Special characters lose their special meaning inside sets. For example, [(+*)]

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Donald Stufft added the comment: Attached is an initial rough draft of the ensurepip module. There are some issues still, but they largely need resolved in pip. 1. Setuptools' use of dependency_links causes pip to still reach out to the internet. 2. Need to remove the --pre flag from the pip i

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- Removed message: http://bugs.python.org/msg201347 ___ Python tracker ___ ___ Python-bugs-list mailing lis

  1   2   >