[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 3.3) Close #19339: telnetlib module is now using time.monotonic() when
http://hg.python.org/cpython/rev/d0f90d3f6203

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 instances of contextlib._GeneratorContextManager, and help() 
insists on showing the docs for that rather than a __doc__ attribute set on the 
context manager instance itself.

This behaviour appears to be ultimately due to "pydoc.render_doc()", which has 
a hardcoded list of conditions it checks to decide whether to document the 
instance directly or to provide the class documentation instead:
http://hg.python.org/cpython/file/2b904290b3b9/Lib/pydoc.py#l1544

This first idea that comes to mind is to simply add the additional condition 
that if "obj.__doc__ != type(obj).__doc__", then help() shouldn't replace the 
object with it's type. The simple trick that I originally explored was simply 
setting the __doc__ attribute on the _GeneratorContextManager instance based on 
the docstring of the decorated function, and I believe that approach might work 
for property instances, too (rather than needing to hardcode the isinstance 
check into render_doc()). It may even handle some of the other currently 
hardcoded conditions in that list.

--
components: Library (Lib)
messages: 201322
nosy: ethan.furman, ncoghlan
priority: normal
severity: normal
status: open
title: Simplify per-instance control of help() output
type: enhancement
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that isn't trivial: see issue 19404 for 
details.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://hg.python.org/cpython/file/09153a9a3bb9/Lib/contextlib.py#l202

The exception checking in the unittest module is similarly based on issubclass: 
http://hg.python.org/cpython/file/09153a9a3bb9/Lib/unittest/case.py#l129

I'm planning to add the catch() and ExitLabel() context managers to contextlib2 
this evening, and those too will be based on issubclass().

Perhaps as a near term thing, we should put an "implementation detail" notice 
somewhere in the language reference, pointing that it's the code using 
issubclass that is considered correct here, and CPython's exception handling 
that is considered out of line?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
keywords: patch
messages: 201330
nosy: docs@python, ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Fix outdated comments in the _sre module
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file32368/sre_comments.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 support
http://hg.python.org/cpython/rev/150242784de0

New changeset b599584ff1e3 by Ned Deily in branch 'default':
Issue #15663: OS X installer builtin Tcl/Tk support
http://hg.python.org/cpython/rev/b599584ff1e3

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (Red Hat 4.7.2-8)] on linux
>>> 
[sky@localhost cpython]$ ./python 
Python 3.4.0a4+ (default:64fb6a58ebf4+, Oct 26 2013, 19:04:01) 
[GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file32369/fix_test_pydoc_with_S_flag.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-10-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file32370/issue16203_mrab_3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-10-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords:  -easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 blocker
severity: normal
status: open
title: PEP 453: add the ensurepip module
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
priority: release blocker
severity: normal
status: open
title: PEP 453: update the "Installing Python Modules" documentation
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-10-26 Thread Nick Coghlan

Changes by Nick Coghlan :


--
Removed message: http://bugs.python.org/msg201346

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 invocation once pip 1.5 is 
finalized
3. Need to fix the --root option when it's used on Wheels 
(https://github.com/pypa/pip/issues/925)


If you prefer to view it on github my branch for working on it is available at 
https://github.com/dstufft/cpython/compare/ensurepip

--
keywords: +patch
Added file: http://bugs.python.org/file32371/draft.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, [(+*)] will match any of the literal 
characters '(', '+', '*', or ')'.

Traceback attached.

Offending code (inside IDLE):
import re
a = '73479*5152'
re.match(r'(\d+)([+-*])(\d+)', a).groups()

NOTE: if I write r'(\d+)([*])(\d+)', r'(\d+)([*+-])(\d+)' or 
r'(\d+)([+*-])(\d+)' it works. Shouldn't it simply work as described in the 
docs or should the docs be updated with an entry about proper character 
ordering in the character class?

--
components: Regular Expressions
files: traceback.txt
messages: 201351
nosy: Isis.Binder, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Regex with set of characters and groups raises error
type: crash
versions: Python 3.3
Added file: http://bugs.python.org/file32372/traceback.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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] will match any hexadecimal digit. If - is escaped (e.g. [a\-z]) or 
if it’s placed as the first or last character (e.g. [a-]), it will match a 
literal '-'."""

A Python exception is not a crash. A crash is a Segmentation Fault (*nix) or 
'Your program stopped unexpectedly' (Windows).

--
nosy: +serhiy.storchaka
resolution:  -> invalid
type: crash -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: pkgutil isn't importable from a file or the REPL
type: behavior
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Lib/test/regrtest.py test_pkgutil
[1/1] test_pkgutil
1 test OK.
$ ./python Lib/test/test_pkgutil.py
Traceback (most recent call last):
  File "Lib/test/test_pkgutil.py", line 5, in 
import pkgutil
  File "/home/ncoghlan/devel/py3k/Lib/pkgutil.py", line 161, in 
importlib.machinery.FileFinder, _iter_file_finder_modules)
AttributeError: 'module' object has no attribute 'machinery'

--
nosy: +brett.cannon, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 will shift all positional arguments 
(example at the last line of the snippet).

I also think staticmethod in this context is useless but agree consistency is a 
thing (you could just use partial instead).

If consistency hadn't held us back, the first proposal of partialmethod, 
working both for instances and classes, would have been most elegant.

from functools import partial

class partialmethod(object):

def __init__(self, func, *args, **keywords):
self.func = func
self.args = args
self.keywords = keywords

def __call__(self, *args, **keywords):
call_keywords = {}
call_keywords.update(self.keywords)
call_keywords.update(keywords)
return self.func(*(self.args + args), **call_keywords)

def __get__(self, obj, cls):
return partial(self.func.__get__(obj, cls), *self.args, **self.keywords)

class A(object):
def add(self, x, y):
print(self)
return x + y
add10 = partialmethod(add, 10)
add10class = partialmethod(classmethod(add), 10)
add10static = partialmethod(staticmethod(add), 'self', 10)

assert A().add10(5) == 15 # prints <__main__.A object at 0x1097e1390>
assert A.add10class(5) == 15 # prints 
assert A.add10static(5) == 15 # prints self
assert A.add10(2, 3) == 5 # prints 10 because the first positional argument is 
self..

Once we approve of the API I'll provide a full fledged patch.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

Just creating this to make sure it is resolved before 3.4 is released (it is 
simply a matter of reverting a patch, since we want to keep *most* of the 
change that implemented absolute paths in __file__ attributes, just not all of 
it)

--
assignee: brett.cannon
messages: 201367
nosy: brett.cannon, larry, ncoghlan
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Restore empty string special casing in importlib.machinery.FileFinder
type: behavior
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 it returns a string (it returns bytes)
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
@classmethod, etc, will be applied to the initial method definition as 
appropriate, so they won't need to be inline except in test cases like these.

Additional test cases needed:

A().add10class(5)
A().add10static(5)
A.add10(A(), 5)

All three should produce 15 as the result, and print the same thing as the 
following:

A.add10class(5)
A.add10static(5)
A().add10(5)

A test method that uses a partial instance as the callable would also be 
helpful in assuring the edge cases are covered.

I believe it may be necessary to have a __get__ method something like:

def _make_unbound_method(self, cls):
def _unbound_method(*args, **kwds):
call_keywords = self.keywords.copy()
call_keywords.update(keywords)
return self.func(*(self.args + args), **call_keywords)
_unbound_method.__objclass__ = cls
return _unbound_method


def __get__(self, obj, cls):
get = getattr(self.func, "__get__")
if get is None:
if obj is None:
return self._make_unbound_method(cls)
callable = self.func
else:
callable = get(obj, cls)
if callable is self.func:
return self._make_unbound_method(cls)
return partial(callable, *self.args, **self.keywords)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 toplevel symbol table rather than all blocks (closes #19393)
http://hg.python.org/cpython/rev/f1b7b5979e96

New changeset f5c729dbe9fb by Benjamin Peterson in branch 'default':
merge 3.3 (#19393)
http://hg.python.org/cpython/rev/f5c729dbe9fb

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
surrounding comments, but they were apparently being used instead to refer to a 
specific kind of CPython build.

A more logical name for such a feature would be HAVE_C_DOCSTRINGS and 
requires_c_docstrings.

--
components: Tests
messages: 201379
nosy: ncoghlan, serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: Add a test.support decorator for tests that require C level docstrings
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
not sysconfig.get_config_var('WITH_DOC_STRINGS'))

HAVE_DOCSTRINGS = _check_docstrings.__doc__ is not None and not 
MISSING_C_DOCSTRINGS

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_generators.py",
 line ?, in test.test_generators.__test__.email
Failed example:
print(i.__next__.__doc__ if HAVE_DOCSTRINGS else 'x.__next__() <==> 
next(x)')
Expected:
x.__next__() <==> next(x)
Got:


I have no idea what HAVE_DOCSTRINGS is all about, alas :-(

--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
optimisation level instead)

However, it's 4 am here, so I'm going to go get some sleep :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) for path in 3 * ['/dev/null']]
pool = multiprocessing.Pool()
results = pool.map(read, files)
print(results)

--
nosy: +jnoller, sbt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/file32377/valgrind.out

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
- add --parallel=i / -ji (jobs) argument to build_ext

--
Added file: http://bugs.python.org/file32382/build_ext_parallel3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the pthread_atfork() code.

I'd like to give the new patch a try. If it doesn't solve the issue ASAP then 
I'm going to disable the feature and replace it with a warning in the SSL 
module and os.fork() function. The issue isn't severe enough to break Python.

--
Added file: http://bugs.python.org/file32383/atfork_prepare.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 processes
- PIDs get reused -- two child processes with same PID get same pseudorandom 
data

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >