[issue19398] test_trace fails with -S

2013-10-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: I finally found the main culprit which puts extra '/' in my sys.path. The patch removed the extra '/' and also fixed this test automatically. -- Added file: http://bugs.python.org/file32367/remove_extra_slash_from_sys_path.patch

[issue19396] test_contextlib fails with -S

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: It's not strictly a duplicate, but I'll be refactoring the relevant tests a bit in order to resolve issue 19330 anyway (I'm working on that now), so I can remove the dependency on help() in the process. -- resolution: - duplicate status: open - closed

[issue19396] test_contextlib fails with -S

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: On second thoughts, since I haven't started on the refactoring yet... -- resolution: duplicate - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19396

[issue19396] test_contextlib fails with -S

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b904290b3b9 by Nick Coghlan in branch 'default': Close #19396: make test_contextlib tolerate -S http://hg.python.org/cpython/rev/2b904290b3b9 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed

[issue19403] Make contextlib.redirect_stdout reentrant

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Use public classes for contextlib.suppress and redirect_stdout ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19403 ___

[issue19403] Make contextlib.redirect_stdout reentrant

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: I realised making contextlib.redirect_stdout reentrant was actually fairly easy (thread safety is inherently impossible due to the process global side effect). Since making it reentrant makes it more user-friendly, I'll tweak the implementation to work that

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I decided to defer adding any public attributes to these APIs - that greatly simplifies this patch, is more consistent with the draft wording in the PEP 8 update (issue 19331), and if the demand for improved introspection support is there, we can always add

[issue19339] telnetlib: time.monotonic() should be used instead of time.time() for timeout

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea3deb022890 by Victor Stinner in branch '3.3': Close #19339: telnetlib module is now using time.monotonic() when available to http://hg.python.org/cpython/rev/ea3deb022890 New changeset d0f90d3f6203 by Victor Stinner in branch 'default': (Merge

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

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: While working on issue 19330, I also took a look at whether or not I could fix the @contextmanager decorator to also provide useful help information on the resulting objects. This turned out to be difficult, since calling decorated functions produces

[issue19339] telnetlib: time.monotonic() should be used instead of time.time() for timeout

2013-10-26 Thread STINNER Victor
STINNER Victor added the comment: Victor, did you see Serhiy's comment? Yes, I modified my patch to use _time name instead. The issue should now be fixed. -- stage: committed/rejected - ___ Python tracker rep...@bugs.python.org

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I checked the other classes in contextlib to ensure they also provided decent docstrings on instances. They were mostly OK, but @contextmanager itself doesn't provide useful docs when inspecting the result context manager instances directly. However, fixing

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66e2dfbb1d70 by Serhiy Storchaka in branch 'default': Issue #18685: Restore re performance to pre-PEP 393 levels. http://hg.python.org/cpython/rev/66e2dfbb1d70 -- nosy: +python-dev ___ Python tracker

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09153a9a3bb9 by Nick Coghlan in branch 'default': Close #19330 by using public classes in contextlib http://hg.python.org/cpython/rev/09153a9a3bb9 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status:

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

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09153a9a3bb9 by Nick Coghlan in branch 'default': Close #19330 by using public classes in contextlib http://hg.python.org/cpython/rev/09153a9a3bb9 -- nosy: +python-dev ___ Python tracker

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I was busy with my tracemalloc PEP, I didn't havee time to review your patch. I'm happy that you restored Python 3.2 performances! Thanks Serhiy. -- ___ Python tracker rep...@bugs.python.org

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00e61cb3b11c by Serhiy Storchaka in branch 'default': Issue #18685: Extract template part of _sre.c into separated sre_lib.h file. http://hg.python.org/cpython/rev/00e61cb3b11c -- ___ Python tracker

[issue12029] Catching virtual subclasses in except clauses

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Because context managers are closer to try/finally blocks than they are to exception handling, the class-based implementation for the contextlib.suppress API uses issubclass rather than emulating the CPython exception handling semantics:

[issue19405] Fix outdated comments in the _sre module

2013-10-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The _sre module contains comments which refers to 16-bit SRE_CODE. Now SRE_CODE is 32-bit. Antoine partially reviewed this change in issue19329. -- assignee: docs@python components: Documentation, Regular Expressions files: sre_comments.patch

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suppose tests will fail when Python is compiled with --without-doc-strings options. Perhaps the test.support.requires_docstrings decorator should be used. -- nosy: +serhiy.storchaka ___ Python tracker

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

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset db5a50959dc9 by Ned Deily in branch '2.7': Issue #15663: OS X installer builtin Tcl/Tk support http://hg.python.org/cpython/rev/db5a50959dc9 New changeset 150242784de0 by Ned Deily in branch '3.3': Issue #15663: OS X installer builtin Tcl/Tk

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

2013-10-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: This issue has been accidentally fixed by http://hg.python.org/cpython/rev/513da56d28de commit. Time to close it? Any last words? -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Didn't you forget to add sre_lib.h? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18685 ___ ___

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, sorry, no. I was fooled by the commit e-mail. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18685 ___ ___

[issue18685] Restore re performance to pre-PEP393 level

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the commit e-mail looks queer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18685 ___ ___

[issue19397] test_pydoc fails with -S

2013-10-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to fix the test. The main issue is that with S flag, we do not have help in builtins. And I think that is deliberate. [sky@localhost cpython]$ ./python -S Python 3.4.0a4+ (default:64fb6a58ebf4+, Oct 26 2013, 19:04:01) [GCC 4.7.2 20121109

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: It also fails under -OO, so I changed that decorator to deal with that case as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19330 ___

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9bbc2d0c1dc by Nick Coghlan in branch 'default': Issue #19330: Handle the no-docstrings case in tests http://hg.python.org/cpython/rev/a9bbc2d0c1dc -- ___ Python tracker rep...@bugs.python.org

[issue16203] Proposal: add re.fullmatch() method

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file32370/issue16203_mrab_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16203 ___

[issue16203] Proposal: add re.fullmatch() method

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16203 ___ ___ Python-bugs-list

[issue16203] Proposal: add re.fullmatch() method

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated to current tip. I have added some changes from the review and have added some tests. Matthew, why change for SRE_OP_REPEAT_ONE is needed? Tests are passed without it. -- ___ Python tracker

[issue19397] test_pydoc fails with -S

2013-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just use pydoc.help. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19397 ___ ___

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: Adding the initial ensurepip implementation and module docs (the Installing Python Modules updates will be handled in a separate issue) -- assignee: dstufft components: Library (Lib) messages: 201342 nosy: dstufft, larry, ncoghlan priority: release

[issue19407] PEP 453: update the Installing Python Modules documentation

2013-10-26 Thread Nick Coghlan
New submission from Nick Coghlan: Updating the Installing Python Modules docs in 2.7, 3.3 and default to recommend pip as the default cross-platform installer. -- assignee: ncoghlan components: Documentation messages: 201343 nosy: benjamin.peterson, georg.brandl, larry, ncoghlan

[issue19407] PEP 453: update the Installing Python Modules documentation

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Once issue 19406 is implemented, this will need an additional update to indicate pip should be available by default in 3.4. -- dependencies: +PEP 453: add the ensurepip module ___ Python tracker rep...@bugs.python.org

[issue19347] PEP 453 implementation tracking issue

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: First two working issues created: Issue 19406 for the addition of ensurepip and its docs Issue 19407 for the Installing Python Modules updates -- dependencies: +PEP 453: add the ensurepip module, PEP 453: update the Installing Python Modules

[issue19407] PEP 453: update the Installing Python Modules documentation

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19437 tracks overall PEP 453 implementation progress -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19347 tracks overall PEP 453 implementation progress -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19406 ___

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19437 tracks overall PEP 453 implementation progress -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19406 ___

[issue19407] PEP 453: update the Installing Python Modules documentation

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19347 tracks overall PEP 453 implementation progress -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___

[issue19407] PEP 453: update the Installing Python Modules documentation

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg201346 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19407 ___

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg201347 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19406 ___

[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

[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: 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

[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 rep...@bugs.python.org

[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]

[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

[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. $

[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

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: Removed file: http://bugs.python.org/file32371/draft.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19406 ___

[issue19406] PEP 453: add the ensurepip module

2013-10-26 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: Removed file: http://bugs.python.org/file32373/draft2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19406 ___

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue19409 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19409

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

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19409 ___ ___ Python-bugs-list

[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
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 Nick Coghlan
Nick Coghlan added the comment: I checked the other modules that previously imported imp, and they're all fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19409 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19031 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19404 ___

[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

[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

[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. --

[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) --

[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 rep...@bugs.python.org http://bugs.python.org/issue19397

[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 rep...@bugs.python.org http://bugs.python.org/issue19227

[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 rep...@bugs.python.org http://bugs.python.org/issue18685 ___

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

2013-10-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19393 ___

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

2013-10-26 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19393 ___ ___

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue18685

[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 rep...@bugs.python.org

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

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19408 ___

[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

[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

[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

[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 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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18734 ___

[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

[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 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

[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

[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 =

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

2013-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19412 ___

[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:

[issue11161] futures.ProcessPoolExecutor hangs

2013-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - committed/rejected versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11161 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue10241 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue5309

[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 rep...@bugs.python.org http://bugs.python.org/issue19405 ___

[issue19085] Add tkinter basic options tests

2013-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file32379/tkinter_options_tests_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue19405

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue13785

[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 rep...@bugs.python.org http://bugs.python.org/issue15634 ___

[issue13785] Make concurrent.futures.Future state public

2013-10-26 Thread Juan Javier
Changes by Juan Javier jjdomingu...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13785 ___ ___

[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 rep...@bugs.python.org

  1   2   >