[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-12 Thread Charles-François Natali

Charles-François Natali added the comment:

 Here is a more useful traceback:

If the failures aren't linked to ENFILE, then you could use strace to
find the process on which the test is doing a waitpid(), and then
perform an strace and gdb on that process to see where it's stuck.
And send it a fatal signal that will make faulthander dump the stack.

--

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: docs@python - rhettinger

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Almost all of these make the docs worse and should not be applied.  The purpose 
of the equivalent code is simply to make the documentation clearer, not to 
show all the ways it could have been done.

I do think Georg's reduce() equivalent should be added because it is clearer 
than the current prose description.

--

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



[issue19201] Add 'x' mode to lzma.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
components: +Library (Lib)
title: Add 'x' mode to lzma.open - Add 'x' mode to lzma.open()

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



[issue19222] Add 'x' mode to gzip.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
components: +Library (Lib)
stage:  - patch review
title: gzip and 'x' mode open - Add 'x' mode to gzip.open()
versions:  -Python 3.3

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



[issue19223] Add 'x' mode to bz2.open()

2013-10-12 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
components: +Library (Lib)
stage:  - patch review
title: bz2 and 'x' mode open - Add 'x' mode to bz2.open()
versions:  -Python 3.3

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

IMO this should be rejected. Failure to improve startup time + more complicated 
maintenance.

--

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



[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Christian, the test is failing on Snow Leopard:


==
FAIL: test_startup_imports (test.test_site.StartupImportTests)
--
Traceback (most recent call last):
  File 
/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_site.py, 
line 435, in test_startup_imports
self.assertFalse(modules.intersection(re_mods))
AssertionError: {'re', 'sre_compile', 'sre_constants', 'sre_parse', '_sre'} is 
not false

http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/106/steps/test/logs/stdio

--
assignee:  - christian.heimes
status: closed - open

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



[issue12853] global name 'r' is not defined in upload.py

2013-10-12 Thread Esa Peuha

Esa Peuha added the comment:

 so I don't know where the global name 'r' is not defined message came from.

It came from Python 2.7. There are two separate bugs here, one in 3.x and the 
other in 2.7: the 3.x bug has to do with bytes/string separation, while the 2.7 
bug is that result was changed to r in baf1a482b57d.

--
nosy: +Esa.Peuha

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



[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a57dfbba91f9 by Christian Heimes in branch 'default':
Issue #19205: add debugging output for failing test on Snow Leopard
http://hg.python.org/cpython/rev/a57dfbba91f9

--

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



[issue12413] make faulthandler dump traceback of child processes

2013-10-12 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12413
___
___
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-12 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 I'm already confused by the fact that the test is named 
 test_multiprocessing_spawn and the error is coming from a module named 
 popen_fork...)

popen_spawn_posix.Popen is a subclass of popen_fork.Popen.

--

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Christian Heimes

Christian Heimes added the comment:

Here is a simpler patch that directly uses the grammar definition to create a 
list of keywords. It completely removes the necessity of a script.

--
components: +Extension Modules
stage:  - patch review
Added file: http://bugs.python.org/file32058/keyword_grammar.patch

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

-1 again. We shouldn't gratuitously convert Python code to C code.

--

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

Well, combined with the fact that it gets rid of a manual regeneration step 
(that is easy to forget, since adding a keyword is not done very often) I think 
it's a net gain.

The same could be done with the token module BTW.

--
nosy: +georg.brandl

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Well, combined with the fact that it gets rid of a manual regeneration step 
 (that is easy to forget, since adding a keyword is not done very often) I 
 think it's a net gain.

If it needs to be automated it can be added to the Makefile...

--

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



[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

Suggestion attached.

--
keywords: +patch
Added file: http://bugs.python.org/file32059/id_unique.diff

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



[issue19231] ctype cant's use printf

2013-10-12 Thread FreedomKnight

New submission from FreedomKnight:

the code is simple, so i paste all of mycode

#!/usr/bin/env python3
from ctypes import *

cdll.LoadLibrary(libc.so.6)
libc = CDLL(libc.so.6)
libc.printf(hello\n)

result:
h

expect result:
hello

plateform:
fedora 19 x64
python3 (3.3.2)

--
components: ctypes
messages: 199552
nosy: FreedomKnight
priority: normal
severity: normal
status: open
title: ctype cant's use printf
type: crash
versions: Python 3.3

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

New submission from Stefan Krah:

As discussed on python-dev, importing _decimal at the bottom of
decimal.py is about 9x slower than importing _decimal directly.

--
assignee: skrah
components: Extension Modules
messages: 199553
nosy: skrah
priority: normal
severity: normal
stage: needs patch
status: open
title: Speed up _decimal import
type: performance
versions: Python 3.4

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



[issue19231] ctype cant's use printf

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

In Python 3, hello\n is a Unicode string. printf() expects a byte string, so 
you should use bhello\n (or s.encode() for string object named s).

--
nosy: +georg.brandl
resolution:  - invalid
status: open - closed

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



[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

I proposed something similar for issue #19229.

--

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



[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

 If it needs to be automated it can be added to the Makefile...

I tested keyword_grammar.patch on a fresh Python source code (make distclean; 
./configure --with-pydebug; make): I can compile Python. I don't understand 
what should be automated? This patch doesn't need to build a dependency.

keyword_grammar.patch needs probably something for Visual Studio (PC/config.c 
and PCbuild/pythoncore.vcxproj?).

--

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



[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Ezio Melotti

Ezio Melotti added the comment:

LGTM

+ created and deleted during execution of the ``id()``

If you want to be more accurate you could say before and after instead of 
during.

--

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Eric V. Smith

Eric V. Smith added the comment:

Remember that one reason for importing the C version at the bottom of the 
python version is so that alternate implementations (PyPy, IronPython, Jython) 
could provide partial versions of the C (or equivalent) versions. By importing 
after the Python version, the alternate implementation could continue to use 
parts of the Python code.

I think the impact on alternate implementations needs to be considered before 
we start rearchitecting these imports.

--
nosy: +eric.smith

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
keywords: +patch
Added file: http://bugs.python.org/file32060/issue19232.diff

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



[issue18754] Run Python child processes in isolated mode in the test suite?

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 72b2e7b74307 by Victor Stinner in branch 'default':
Close #18754: Run Python child processes in isolated more in the test suite.
http://hg.python.org/cpython/rev/72b2e7b74307

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

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



[issue18758] Fix internal references in the documentation

2013-10-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch to Sphinx which helped me to search dead internal references. 
Not all references were fixed by proposed patches.

--
Added file: http://bugs.python.org/file32061/sphinx_warn_refs.patch

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



[issue19233] test_io.test_interrupted_write_retry_text() hangs on Solaris 10 and FreeBSD 7.2

2013-10-12 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.x/builds/4531/steps/test/logs/stdio


[136/380] test_io
Timeout (1:00:00)!
Thread 0x28401040:
  File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_io.py, 
line 3215 in check_interrupted_write_retry
  File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_io.py, 
line 3237 in test_interrupted_write_retry_text
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/case.py, line 
571 in run
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/case.py, line 
610 in __call__
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
117 in run
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
79 in __call__
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
117 in run
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
79 in __call__
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
117 in run
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/suite.py, line 
79 in __call__
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/unittest/runner.py, 
line 168 in run
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/support/__init__.py,
 line 1661 in _run_suite
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/support/__init__.py,
 line 1695 in run_unittest
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/regrtest.py, line 
1275 in lambda
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/regrtest.py, line 
1276 in runtest_inner
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/regrtest.py, line 
965 in runtest
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/regrtest.py, line 
761 in main
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/regrtest.py, line 
1560 in main_in_temp_cwd
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/__main__.py, line 
3 in module
  File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/runpy.py, line 
73 in _run_code
  File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/runpy.py, line 
160 in _run_module_as_main


and

http://buildbot.python.org/all/builders/SPARC%20Solaris%2010%20%28cc%2C%2064b%29%20%5BSB%5D%203.x/builds/980/steps/test/logs/stdio

[324/377/2] test_io
Timeout (1:00:00)!
Thread 0x0001:
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_io.py,
 line 3215 in check_interrupted_write_retry
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_io.py,
 line 3237 in test_interrupted_write_retry_text
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/case.py,
 line 496 in run
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/case.py,
 line 535 in __call__
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 105 in run
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 67 in __call__
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 105 in run
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 67 in __call__
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 105 in run
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/suite.py,
 line 67 in __call__
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/unittest/runner.py,
 line 168 in run
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/support/__init__.py,
 line 1624 in _run_suite
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/support/__init__.py,
 line 1658 in run_unittest
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py,
 line 1304 in lambda
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py,
 line 1305 in runtest_inner
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py,
 line 998 in runtest
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py,
 line 796 in main
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/regrtest.py,
 line 1590 in main_in_temp_cwd
  File 
/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/__main__.py,
 line 3 in module
  File 

[issue19131] Broken support of compressed AIFC files

2013-10-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Stefan Krah added the comment:

Right, let's start collecting objections. :)

Mark, Raymond: Would you support the change (__name__ hack and all)?


Maciej: Is this approach a problem for PyPy?

--
nosy: +fijall, mark.dickinson, rhettinger

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



[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

 New changeset a57dfbba91f9 by Christian Heimes in branch 'default':
 Issue #19205: add debugging output for failing test on Snow Leopard
 http://hg.python.org/cpython/rev/a57dfbba91f9

So the import re comes from _osx_support, _osx_support is imported by 
sysconfig.

--

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
stage: needs patch - patch review

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



[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

If the Python implementation is renamed to _pydecimal, I don't expect it to be 
used in CPython. I never used _pyio in a real application, only for some tests 
to debug. I don't think that we need the __name__ = 'decimal' hack. If you 
really want to keep it, please add at least a comment explaining it.

--

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



[issue19205] Don't import re and sysconfig in site.py

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9f6ef09f6492 by Christian Heimes in branch 'default':
Issue #19205: _osx_support uses the re module all over the place. Omit the test 
for nw.
http://hg.python.org/cpython/rev/9f6ef09f6492

--

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



[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-12 Thread Stefan Krah

Stefan Krah added the comment:

Using the microbenchmark I get (standard version):

./python -m timeit import sys; modname='operator' __import__(modname); del 
sys.modules[modname]
1000 loops, best of 3: 460 usec per loop


Victor's version:

./python -m timeit import sys; modname='operator' __import__(modname); del 
sys.modules[modname]
1000 loops, best of 3: 355 usec per loop


Importing _operator directly:

./python -m timeit import sys; modname='_operator' __import__(modname); del 
sys.modules[modname]
1 loops, best of 3: 35.7 usec per loop


Extrapolating from what I did with decimal, I guess a _pyoperator
version could get down to something like 70 usec.

--
nosy: +skrah

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Stefan Krah added the comment:

I guess if some of the pickling stuff get's rewritten, we can drop
__name__.

The other thing is that traditionally the types were decimal.Decimal
etc., so I'm not sure if it is good idea to have _decimal.Decimal and
_pydecimal.Decimal.

Of course adding __module__ everywhere is another option.

--

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



[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

 Did you encounter this in real life?

Well, my initial concern was that dup() creates an inheritable file descriptor. 
It is unlikely that fork() occurs while is_valid_fd() is called, because 
is_valid_fd() is only called early during Python initialization.

Replacing dup() with _Py_dup() would be overkill: _Py_dup() releases the GIL 
and raises an exception, which is not needed here.

I'm closing the issue. I will reopen it if I find a simple solution to this 
non-issue :-)

--
resolution:  - invalid
status: open - closed

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



[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

This is a regression of Python 3.4, so it would be nice to fix it before the 
Python 3.4 final.

--
nosy: +larry
priority: normal - release blocker

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



[issue19232] Speed up _decimal import

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

 The other thing is that traditionally the types were decimal.Decimal
 etc., so I'm not sure if it is good idea to have _decimal.Decimal and
 _pydecimal.Decimal.

Why not renaming the _decimal module to decimal?

--

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Stefan Krah added the comment:

_decimal already lies about its name (for pickling).

--

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



[issue19221] Upgrade to Unicode 6.3.0

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cc1e2f9a569a by Ezio Melotti in branch 'default':
#19221: update whatsnew entry about UCD version.
http://hg.python.org/cpython/rev/cc1e2f9a569a

--

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



[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

On BSDs and OS X, you can use kqueue with EVFILT_PROC+NOTE_EXIT to do exactly 
that. No polling required. Unfortunately there's no Linux equivalent.
http://stackoverflow.com/questions/1157700/how-to-wait-for-exit-of-non-children-processes/7477317#7477317

An example:
http://doc.geoffgarside.co.uk/kqueue/proc.html

--

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



[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

On Linux, it possible to watch processes using a netlink socket:
http://www.outflux.net/blog/archives/2010/07/01/reporting-all-execs/

Example:
http://users.suse.com/~krahmer/exec-notify.c

Python binding (written in Cython) for proc connector:
http://debathena.mit.edu/trac/browser/trunk/debathena/debathena/metrics/debathena/metrics/connector.pyx

There is just a minor limitation: you must be root (CAP_NET_ADMIN) to use this 
interface...

--

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



[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-12 Thread Brett Cannon

Brett Cannon added the comment:

Just a quick favour to ask people: please post benchmark numbers of 
startup_nosite and normal_startup with your patches, otherwise we are taking 
stabs in the dark that the code complexity being suggested is worth it.

--

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



[issue19131] Broken support of compressed AIFC files

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 567241d794bd by Serhiy Storchaka in branch '2.7':
Issue #19131: The aifc module now correctly reads and writes sampwidth of
http://hg.python.org/cpython/rev/567241d794bd

New changeset 863a92cc9e03 by Serhiy Storchaka in branch '3.3':
Issue #19131: The aifc module now correctly reads and writes sampwidth of
http://hg.python.org/cpython/rev/863a92cc9e03

New changeset cff4dd674efe by Serhiy Storchaka in branch 'default':
Issue #19131: The aifc module now correctly reads and writes sampwidth of
http://hg.python.org/cpython/rev/cff4dd674efe

--
nosy: +python-dev

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



[issue19230] Reimplement the keyword module in C

2013-10-12 Thread Brett Cannon

Brett Cannon added the comment:

Is there any change in any benchmark?

--
nosy: +brett.cannon

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread Charles-François Natali

Charles-François Natali added the comment:

Honestly, I think the extra complexity and non-portability isn't worth it.

--

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



[issue19108] Benchmark runner tries to execute external Python command and fails on error reporting

2013-10-12 Thread Stefan Behnel

Stefan Behnel added the comment:

Here's a patch that replaces the current simplistic Python executable command 
config with a dedicated PythonRuntime config class. That makes it easy to 
properly pass around the program specific configuration. Part of that is the 
Python executable path, the Python version, the specific command line arguments 
and the relative benchmark library path.

The patch also adds a --pyversions command line option to avoid calling the 
executable for figuring out the Python versions, as discussed.

--
keywords: +patch
Added file: 
http://bugs.python.org/file32062/add_pyversions_option_and_refactor_runtime_config.patch

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



[issue19233] test_io.test_interrupted_write_retry_text() hangs on Solaris 10 and FreeBSD 7.2

2013-10-12 Thread Charles-François Natali

Charles-François Natali added the comment:

I think the problem is that those buildbots are really slow (just look at the 
second buildbot's backlog), and the signal is delivered before the large buffer 
is allocated, hence the write() syscall doesn't fail with EINTR.

--
nosy: +neologix

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



[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here normal_startup and startup_nosite wouldn't show a difference (under Linux 
anyway) because the locale module is only imported for non-interactive streams, 
AFAICT.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Honestly, I think the extra complexity and non-portability isn't worth it.

That's what I think too.
If we want to avoid polling, there's another approach:
- fork() a first time
- fork() in the first child
- exec() in the second child
- in the first child, call waitpid() and then write() the return code to
a fd
- in the parent, wait on the fd using select() or poll()

--

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



[issue8090] PEP 4 should say something about the standard library

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f7e3f6a53823 by Georg Brandl in branch 'default':
PEP 4: convert to reST, update SourceForge - bugs.python.org, update 
DeprecationWarning policy
http://hg.python.org/peps/rev/f7e3f6a53823

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

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



[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8525cc1f342f by Georg Brandl in branch '2.7':
Closes #13203: add a FAQ section about seemingly duplicate id()s.
http://hg.python.org/cpython/rev/8525cc1f342f

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

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



[issue13203] Doc: say id() is only useful for existing objects

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d5de993db66 by Georg Brandl in branch '3.3':
Closes #13203: add a FAQ section about seemingly duplicate id()s.
http://hg.python.org/cpython/rev/0d5de993db66

--

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



[issue19179] doc bug: confusing table of values

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9aae58596349 by Georg Brandl in branch '2.7':
Closes #19179: make table of XML vulnerabilities clearer by using everyday 
booleans and explaining the table beforehand.
http://hg.python.org/cpython/rev/9aae58596349

--

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



[issue18758] Fix internal references in the documentation

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

The -n (nitpicky) option to Sphinx should also report missing references.

--

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



[issue19179] doc bug: confusing table of values

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6b0ca3963ff1 by Georg Brandl in branch '3.3':
Closes #19179: make table of XML vulnerabilities clearer by using everyday 
booleans and explaining the table beforehand.
http://hg.python.org/cpython/rev/6b0ca3963ff1

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

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

What do you think of the two references added to the itertools docs?

--

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



[issue16355] inspect.getcomments() does not work in the interactive shell

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

lives in the interactive shell is not precise; I would prefer has been 
defined in 

--
nosy: +georg.brandl

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



[issue18177] Incorect quote marks in code section-headers in PDF version of docs

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

Yes, there is already one or two issues there (e.g. number 1239).

--
resolution:  - invalid
status: pending - closed

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



[issue19234] socket.fileno() documentation

2013-10-12 Thread Georg Brandl

New submission from Georg Brandl:

 Original-Nachricht 
Betreff: [docs] socket.fileno() documentation
Datum: Thu, 10 Oct 2013 19:27:35 +0200
Von: Vlado Potisk vl...@poti.sk
An: d...@python.org

I might be wrong but in my opinion the socket library documentation is not
clear enough regarding the behaviour of the fileno() method in a case of a
failure.

In the Python 3.2 socket library documentation there is:

exception socket.error

A subclass of IOError, this exception is raised for socket-related errors.
-
 socket.close()

Close the socket. All future operations on the socket object will fail.

 socket.fileno()

Return the socket’s file descriptor (a small integer).


Based on the information quoted above, I wrote a test if a socket is active or
if it has been closed already:

try:
sock.fileno()
except socket.error:
return False
return True

But is doesn't work. I have found out that fileno() returns -1 on a closed
socket. Replacing fileno() with e.g. getsockname() fixes the code.

It looks like a fileno's failure - unlike to getsockname's failure - is not
expressed by raising an exception, but by returning -1. However this seems to
be not documented and that's why I'm unsure if I may rely on this.

--
assignee: docs@python
components: Documentation
messages: 199592
nosy: docs@python, georg.brandl
priority: normal
severity: normal
status: open
title: socket.fileno() documentation

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



[issue13026] Dis module - documentation of MAKE_FUNCTION

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b9ab48c491d5 by Georg Brandl in branch '3.3':
Closes #13026: fix documentation of MAKE_FUNCTION for 3.x.
http://hg.python.org/cpython/rev/b9ab48c491d5

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

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



[issue19234] socket.fileno() documentation

2013-10-12 Thread R. David Murray

R. David Murray added the comment:

See also issue 19154.  For consistency with the rest of Python it should 
probably raise ValueError.  But at this point it has done what it does for a 
long time (which is to return what the underlying posix function returns), so 
we should probably just document it.

--
nosy: +r.david.murray

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-12 Thread Elazar Gershuni

New submission from Elazar Gershuni:

There's no dedicated StackOverflowErrorException, So there is no way to 
accurately distinguish a recursion overflow from a general RuntimeError. 

One cannot use the exception message, since the docs explicitly says that 
Exception messages are not part of the Python API, and checking for

len(traceback.extract_tb(trace)) = sys.getrecursionlimit()-1

is ugly, and (AFAIK) not guaranteed to be correct.

Use case: I've found this while trying to create a cycle detector that will 
compress the traceback of such errors.

See discussion in python-ideas:
https://mail.python.org/pipermail/python-ideas/2013-September/023190.html

An cycle-detection implementation:
http://code.activestate.com/recipes/578660-concise-output-for-maximum-recursion-depth-exceede/

--
components: Library (Lib)
messages: 199595
nosy: elazar
priority: normal
severity: normal
status: open
title: Add a dedicated subclass for recursion errors
type: enhancement
versions: Python 3.4

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



[issue13905] Built-in Types Comparisons should mention rich comparison methods

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9f1e1da820fb by Georg Brandl in branch '2.7':
Closes #13905: mention rich-comparison methods in addition to __cmp__ when 
documenting how to make classes comparable and orderable.
http://hg.python.org/cpython/rev/9f1e1da820fb

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

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

The reference from accumulate() to reduce() may be useful.

I'm opposed to most of the other equivalents and cross-references.  They bloat 
the docs without adding value.  Terry is right in saying that the equivalent 
for enumerate() is better as a basic loop than as a composition of functional 
tools.   I think the OP has missed what the purpose of the code equivalents was 
trying to do.

--

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



[issue15805] Add stdout redirection tool to contextlib

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

Whatsnew: yes please.

As for your second point, I assume Raymond wanted to exemplify usage with an 
unfortunate API that prints to stderr with no option to change it.  It just 
turned out that dis() is not one of those APIs.

For purposes of print(), you're almost always better off using file=x on each 
print you do.

--
nosy: +georg.brandl

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

I agree. Will prepare a patch to the reduce() doc.

--

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



[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Added file: http://bugs.python.org/file32063/reduce_equiv.diff

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



[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2013-10-12 Thread STINNER Victor

STINNER Victor added the comment:

For the PEP 446 (non inheritable files and sockets), it was discussed to
write a helper similar to what Antoine proposes, but to only inherit a few
handles instead all inherit all (inheritable) handles.

--

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



[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes

Christian Heimes added the comment:

Done

--
stage:  - patch review
Added file: http://bugs.python.org/file32064/pbkdf2_2.patch

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



[issue13833] No documentation for PyStructSequence

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 05dcaf761c7d by Georg Brandl in branch '3.3':
Closes #13833: document PyStructSequence C-API functions.
http://hg.python.org/cpython/rev/05dcaf761c7d

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

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



[issue19224] Make hash(None) consistent among processes

2013-10-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

There seems to be a pretty good consensus that this is something we don't want 
to support.

--
resolution:  - rejected
status: open - closed

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-12 Thread Elazar Gershuni

Changes by Elazar Gershuni elaz...@gmail.com:


--
nosy: +georg.brandl

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



[issue13915] Update tutorial/modules for PEP 3147

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

Thanks for the suggestion!

--
nosy: +georg.brandl

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



[issue13915] Update tutorial/modules for PEP 3147

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ecef57f57f9 by Georg Brandl in branch '3.3':
Closes #13915: update tutorial with respect to .pyc files (__pycache__ / PEP 
3147).
http://hg.python.org/cpython/rev/6ecef57f57f9

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

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



[issue19224] Make hash(None) consistent among processes

2013-10-12 Thread Christian Heimes

Christian Heimes added the comment:

Tim has convinced me, too.

--

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-12 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
nosy: +pitrou

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This sounds like a reasonable feature request to me.

--
components: +Interpreter Core -Library (Lib)

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

I agree.

--

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



[issue4965] Can doc index of html version be separately scrollable?

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

See http://sphinx-doc.org/latest/ for my preferred solution.

--

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



[issue19131] Broken support of compressed AIFC files

2013-10-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue11233] clarifying Availability: Unix

2013-10-12 Thread Georg Brandl

Georg Brandl added the comment:

A draft is attached.  The directive currently just always links to the 
availability notes, which I have moved to the main Operating system 
services document.  Please review!

--
keywords: +patch
Added file: http://bugs.python.org/file32065/availability-directive.patch

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



[issue18919] Unify audio modules tests

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3303d735058f by Serhiy Storchaka in branch '2.7':
Issue #18919: If the close() method of a writer in the sunau or wave module
http://hg.python.org/cpython/rev/3303d735058f

New changeset b7eae747385c by Serhiy Storchaka in branch '3.3':
Issue #18919: If the close() method of a writer in the sunau or wave module
http://hg.python.org/cpython/rev/b7eae747385c

--

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah

Stefan Krah added the comment:

I can't apply the patch that was created with diff --git, so here is
another one that is less readable but applies.

--
Added file: http://bugs.python.org/file32066/issue19232-2.patch

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



[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Tornado 3.1.1 is compatible with Python 2.6, 2.7, 3.2 and upwards, which makes 
it a good candidate for a networking benchmark.

Here is a patch adding a HTTP (server + client) benchmark. A trivial HTTP 
server is spawned which writes a sizable body in response to requests. HTTP 
clients then connect with a certain amount of concurrency and fetch the HTTP 
server's resource.

(note: the patch omits the Tornado lib itself for readability)

--
files: tornado_bench.patch
keywords: patch
messages: 199613
nosy: brett.cannon, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Add Tornado HTTP benchmark
type: enhancement
versions: 3rd party
Added file: http://bugs.python.org/file32067/tornado_bench.patch

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



[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Stefan Behnel

Changes by Stefan Behnel sco...@users.sourceforge.net:


--
components: +Benchmarks
nosy: +scoder

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



[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Gregory P. Smith

Gregory P. Smith added the comment:

makes sense to me.

--
nosy: +gregory.p.smith

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



[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Stefan Behnel

Stefan Behnel added the comment:

+1. Does it give reasonably predictable timings?

--

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



[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 +1. Does it give reasonably predictable timings?

Yes. There is a small warmup phase at the beginning (the first few
rounds are skipped). The benchmark eats 100% CPU on one core, mostly
userspace (at least under Linux).

--

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



[issue19219] speed up marshal.loads()

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4059e871e74e by Antoine Pitrou in branch 'default':
Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to 10%) 
smaller.
http://hg.python.org/cpython/rev/4059e871e74e

--
nosy: +python-dev

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



[issue19219] speed up marshal.loads()

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've now committed the latest patch (marshal_opts5.patch).

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19232] Speed up _decimal import

2013-10-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I can't apply the patch that was created with diff --git, so here is
 another one that is less readable but applies.

You can apply it using hg import --no-commit, I think.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19232
___
___
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-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Serhiy, sorry to ping you, but do you think you're gonna look at this?

--

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



[issue18281] tarfile defines stat constants

2013-10-12 Thread Ethan Furman

Ethan Furman added the comment:

Sounds like we have a consensus.  If no objections I'll commit in four or five 
days (in time for the last alpha).

--

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



[issue12186] readline.replace_history_item still leaks memory

2013-10-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +haypo
stage:  - patch review
versions:  -Python 2.6, Python 3.1, Python 3.2

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



[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)

2013-10-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 142c62a490ce by Antoine Pitrou in branch 'default':
Issue #4555: All exported C symbols are now prefixed with either Py or _Py.
http://hg.python.org/cpython/rev/142c62a490ce

--
nosy: +python-dev

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



[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)

2013-10-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed
versions:  -Python 3.2

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



  1   2   >