[issue18606] Add statistics module to standard library

2013-08-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: To anyone waiting for me to respond to rietveld reviews, I'm trying, I really am, but I keep getting a django traceback. This seems to have been reported before, three months ago: http://psf.upfronthosting.co.za/roundup/meta/issue517 --

[issue11798] Test cases not garbage collected after run

2013-08-16 Thread Simon Charette
Changes by Simon Charette : -- nosy: +charettes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18767] csv documentation does not note default quote constant

2013-08-16 Thread Brian McLaughlin
New submission from Brian McLaughlin: Documentation should note default quoting behavior of the csv module is csv.QUOTE_MINIMAL http://hg.python.org/cpython/file/tip/Modules/_csv.c#l420 -- assignee: docs@python components: Documentation files: doc.patch keywords: patch messages: 195448

[issue18745] Test enum in test_json is ignorant of infinity value

2013-08-16 Thread Ethan Furman
Ethan Furman added the comment: Tests look good to me. -- nosy: +barry, eli.bendersky stage: -> patch review ___ Python tracker ___ _

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2013-08-16 Thread Phil Webster
New submission from Phil Webster: If you open a new editor window in IDLE, some modules will autocomplete (re, os, other common modules used by IDLE) and others will not (textwrap, datetime, ...). The current solution is to run your module or type the imports into the shell window to get compl

[issue18706] test failure in test_codeccallbacks

2013-08-16 Thread Eric Snow
Eric Snow added the comment: Regarding this: >>> def f(): ... import html.entities ... del sys.modules['html'] ... >>> f() >>> import html.entities >>> html.entities Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'entities' Thi

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2013-08-16 Thread Gregory P. Smith
New submission from Gregory P. Smith: A few times now I've seen people write something that overrides and re-implements the unittest.TestCase run() method, copying most of the implementation but adding one feature: The ability for pdb.post_mortem() to be called after every phase of execution

[issue18759] Fix internal doc references for logging package

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset aea67c35e3ce by Vinay Sajip in branch '2.7': Issue #18759: Improved cross-references in logging documentation. http://hg.python.org/cpython/rev/aea67c35e3ce New changeset 80c475617608 by Vinay Sajip in branch '3.3': Issue #18759: Improved cross-refe

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't see a patch attached, but I do not recall any good reason off the top of my head for preexec_fn to be called as late as it is. Moving it up to be called before the fd closing loop makes sense as a bug fix. All bets are off when it comes to safe beha

[issue18720] Switch suitable constants in the socket module to IntEnum

2013-08-16 Thread Eli Bendersky
Eli Bendersky added the comment: Charles-François: unfortunately, the alternative seems to be even more tedious and error prone. Internally, socketmodule.c really uses ints all over the place. Changing that to use IntEnum objects from Python would be very tedious and touch a lot more code. Ch

[issue18759] Fix internal doc references for logging package

2013-08-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: docs@python -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-16 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file31331/CVE-2013-4238-py32.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-16 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file31330/CVE-2013-4238-py31.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-16 Thread Christian Heimes
Christian Heimes added the comment: I have applied the patch to 2.7, 3.3 and 3.4. Barry, Benjamin, Georg: Are you going to apply the patches yourselves? -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker

[issue18764] The pdb print command prints repr instead of str in python3

2013-08-16 Thread R. David Murray
New submission from R. David Murray: In 2.7: >>> import pdb >>> from email import message_from_string as m >>> x = m("To: me\nfrom: you\n\ntest\n") >>> pdb.set_trace() --Return-- > (1)()->None (Pdb) print x >From nobody Fri Aug 16 19:06:58 2013 To: me from: you test In 3.4: >>> import pdb >>

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9f073e593b0 by Christian Heimes in branch '3.3': Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes http://hg.python.org/cpython/rev/c9f073e593b0 New changeset 7a0f398d1a5c by Christian Heimes in branch 'default': Issue #18709:

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: That's probably not worth it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18760] Fix internal doc references for the xml package

2013-08-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2013-08-16 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: A fourth way to add __getbuffer__ and __releasebuffer__ special methods to a Python class is through a new base class/mixin. The Py_buffer struct pointer passed to __getbuffer__ and __releasebuffer__ is wrapped with another special object type, which exposes

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-16 Thread Charles-François Natali
Charles-François Natali added the comment: Should be fixed now! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-16 Thread Charles-François Natali
New submission from Charles-François Natali: Currently, when passed close_fds=True, the subprocess module closes FDs before calling preexec_fn (if provided). This can be an issue if preexec_fn opens some file descriptors, which would then be inherited in the child process. Here's a patch with t

[issue18705] Fix typos/spelling mistakes in Lib/*.py files

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not spelling expert Antoine. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2150c7d6426c by Serhiy Storchaka in branch 'default': Issue #18701: Remove sqlitecompat.h. http://hg.python.org/cpython/rev/2150c7d6426c -- ___ Python tracker

[issue18757] Fix internal references for concurrent modules

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated patch. Thank Ezio for found errors. -- Added file: http://bugs.python.org/file31328/refs.concurrect.diff ___ Python tracker __

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot that this patch need `hg import` instead of `patch --merge -p1`. Thank you Antoine. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue18705] Fix typos/spelling mistakes in Lib/*.py files

2013-08-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18741] Fix typos/spelling mistakes in Lib/*/*/.py files

2013-08-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your commit forgot to remove sqlitecompat.h. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18744] pathological performance using tarfile

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think in most cases peoples extracts archives in natural order and don't have a failure. But adding a warning looks reasonable. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python stage: -> needs patch version

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a04d957c8d07 by Serhiy Storchaka in branch 'default': Issue #18701: Remove support of old CPython versions (<3.0) from C code. http://hg.python.org/cpython/rev/a04d957c8d07 -- nosy: +python-dev ___ Python

[issue18720] Switch suitable constants in the socket module to IntEnum

2013-08-16 Thread Christian Heimes
Christian Heimes added the comment: I wonder how much of an performance issue these wrappers are going to be. -- ___ Python tracker ___ __

[issue18744] pathological performance using tarfile

2013-08-16 Thread K Richard Pixley
K Richard Pixley added the comment: I see your point. The alternative would be to limit the size of archive that can be extracted from to the size of virtual memory, which is essentially what I'm doing manually. Either way, someone will be surprised. I'm not which which way will result in t

[issue18720] Switch suitable constants in the socket module to IntEnum

2013-08-16 Thread Charles-François Natali
Charles-François Natali added the comment: > The attached patch fixes it in a similar vein to what was done for the > family accessor: getaddrinfo is overridden in Python and does the necessary > conversion. Am I the only one thinking that wrapping every C function with a Python counterpart to p

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5880c7d33e13 by Charles-François Natali in branch '3.3': Issue #16463: Fix a transient test_timeout failure. http://hg.python.org/cpython/rev/5880c7d33e13 New changeset 5d4fe1da2c90 by Charles-François Natali in branch 'default': Issue #16463: Fix a

[issue16105] Pass read only FD to signal.set_wakeup_fd

2013-08-16 Thread Felipe Cruz
Felipe Cruz added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Fix internal doc references for the email package ___ Python tracker ___ ___ Python-bu

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18743] References to non-existant "StringIO" module

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset b23ad357c214 by Serhiy Storchaka in branch '3.3': Issue #18743: Fix references to non-existant "StringIO" module. http://hg.python.org/cpython/rev/b23ad357c214 New changeset 3acbd7aca856 by Serhiy Storchaka in branch 'default': Issue #18743: Fix ref

[issue17628] str==str: compare the first character before calling memcmp()

2013-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, there are two distinct issues. As everyone has noted here, accessing memory in non-sequential order is a performance killer. The other issue (the one I was working on) is that early-out first-char or last-char tests are a waste (almost never executed

[issue18744] pathological performance using tarfile

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the script Richard. If you say about performance degradation when extracting a tarfile in changed order this behavior is expected. When you read a gzip file in random order you need seek in it. A gzip file is a singe-direction road. For seeking

[issue18705] Fix typos/spelling mistakes in Lib/*.py files

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: See also #18741. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue18741] Fix typos/spelling mistakes in Lib/*/*/.py files

2013-08-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Christian Heimes
Christian Heimes added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch after Christian's comments. -- Added file: http://bugs.python.org/file31327/persistent_urandom_fd3.patch ___ Python tracker ___ __

[issue18736] Invalid charset in HTML pages inside documentation in CHM format

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: This is a problem with Sphinx and should be reported upstream. These encondings are defined in the htmlhelp builder and they are recognized by Python, but indeed they shouldn't end up in the meta tag. -- assignee: docs@python -> georg.brandl nosy: +ezio.m

[issue18585] Add a text truncation function

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: (Ezio noticed that I had left the placeholder as " (...)". This is now fixed.) -- ___ Python tracker ___ ___

[issue18585] Add a text truncation function

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset be5481bf4c57 by Antoine Pitrou in branch 'default': Fix the default placeholder in textwrap.shorten() to be " [...]". http://hg.python.org/cpython/rev/be5481bf4c57 -- ___ Python tracker

[issue18731] Increased test coverage for uu and telnet

2013-08-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18743] References to non-existant "StringIO" module

2013-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: LGTM -- nosy: +terry.reedy stage: patch review -> commit review type: -> behavior ___ Python tracker ___ __

[issue18729] In unittest.TestLoader.discover doc select the name of load_tests function

2013-08-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue18762] error in test_multiprocessing_forkserver

2013-08-16 Thread Antoine Pitrou
New submission from Antoine Pitrou: One buildbot has exhibited (sporadic?) errors in test_multiprocessing_forkserver: http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/4823/steps/test/logs/stdio -- components: Library (Lib), Tests messages: 195410 nosy: pitr

[issue18718] datetime documentation contradictory on leap second support

2013-08-16 Thread David Wolever
David Wolever added the comment: D'oh, yes, it can (and I've closed it now). -- status: pending -> closed ___ Python tracker ___ ___ P

[issue18718] datetime documentation contradictory on leap second support

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: Can this be closed? -- nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> pending type: -> enhancement ___ Python tracker __

[issue18715] Tests fail when run with coverage

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: It's probably better to open a separate issue for each test module that is failing, possibly by keeping this as a meta-issue. -- nosy: +ezio.melotti type: -> behavior ___ Python tracker

[issue18761] Fix internal doc references for the email package

2013-08-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a preliminary patch (long lines are not wrapped yet) which fixes internal references in the documentation of the email package. -- assignee: docs@python components: Documentation files: refs.email.diff keywords: patch messages: 195406 nosy:

[issue18716] Deprecate the formatter module

2013-08-16 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In such case perhaps links should be explicitly prohibited (with '!' mark). -- ___ Python tracker ___

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Fix internal doc references for logging package, Fix internal doc references for the xml package ___ Python tracker ___ _

[issue18760] Fix internal doc references for the xml package

2013-08-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the documentation of the xml package. -- assignee: docs@python components: Documentation messages: 195404 nosy: christian.heimes, docs@python, eli.bendersky, eric.araujo, ezio.melotti, georg.brandl

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: Note that not all the targets should be converted to links. They should be converted only if the link is useful, and usually redundant links are not necessary (e.g. if the same target is repeated several times in the same paragraph/section). -- __

[issue16105] Pass read only FD to signal.set_wakeup_fd

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch using PyErr_WriteUnraisable(). -- stage: -> patch review Added file: http://bugs.python.org/file31325/wakeup_fd_error2.patch ___ Python tracker _

[issue18759] Fix internal doc references for logging package

2013-08-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the documentation of the logging package. -- assignee: docs@python components: Documentation files: refs.logging.diff keywords: patch messages: 195401 nosy: docs@python, eric.araujo, ezio.melotti, g

[issue18753] [c]ElementTree.fromstring fails to parse ]]>

2013-08-16 Thread R. David Murray
R. David Murray added the comment: Not a problem, these things are often subtle. And now there is a record of it in the tracker if anyone else questions it in the future. -- stage: -> committed/rejected ___ Python tracker

[issue18753] [c]ElementTree.fromstring fails to parse ]]>

2013-08-16 Thread Kees Bos
Changes by Kees Bos : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue18753] [c]ElementTree.fromstring fails to parse ]]>

2013-08-16 Thread Kees Bos
Kees Bos added the comment: OK. I got clarification from the lxml list. It's not a bug. And it's sepcified in section 2.4 (http://www.w3.org/TR/REC-xml/#syntax): The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimit

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch for persistent fd. -- Added file: http://bugs.python.org/file31323/persistent_urandom_fd2.patch ___ Python tracker ___ ___

[issue18720] Switch suitable constants in the socket module to IntEnum

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Besides some nitpicks which I have left on Rietveld the patch LGTM. I guess the _family_converter idiom will be popular enough. Perhaps we will add some helper just to the Enum class. -- ___ Python tracker

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed. We're left with the persistent fd patch for 3.4. -- stage: needs patch -> patch review versions: -Python 2.7, Python 3.3 ___ Python tracker

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec296a36156b by Antoine Pitrou in branch '2.7': Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing. http://hg.python.org/cpython/rev/ec296a36156b -- __

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 193bcc12575d by Antoine Pitrou in branch '3.3': Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing. http://hg.python.org/cpython/rev/193bcc12575d New changeset fe949918616c

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Charles-François Natali
Charles-François Natali added the comment: > Updated error handling patch testing for ENODEV. LGTM, you can apply to 2.7 and 3.x (I just hope all those errnos are available on every POSIX platform ;-). -- ___ Python tracker

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Fix internal references for concurrent modules, References to non-existant "StringIO" module ___ Python tracker ___ _

[issue18758] Fix internal references in the documentation

2013-08-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is a meta issue for fixing broken references in the documentation. I will open a child issues for some groups of modules and finally provide a patch for rest files. -- assignee: docs@python components: Documentation messages: 195392 nosy: docs

[issue16190] Misleading warning in random module docs

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: As far as I understand, os.urandom() is fine for the task. There's no point in mentioning ssl.RAND_bytes() just because it exists, IMO. -- ___ Python tracker _

[issue16190] Misleading warning in random module docs

2013-08-16 Thread STINNER Victor
STINNER Victor added the comment: Why did you remove reference to ssl.RAND_bytes() on Python 3.3 from the notice? -- ___ Python tracker ___ __

[issue18707] the readme should also talk about how to build doc.

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18757] Fix internal references for concurrent modules

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry. It is here. -- keywords: +patch Added file: http://bugs.python.org/file31322/refs.concurrect.diff ___ Python tracker ___ __

[issue18707] the readme should also talk about how to build doc.

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6bc88d61f302 by Ezio Melotti in branch '2.7': #18707: point to Doc/README.txt in the README file. Patch by Madison May. http://hg.python.org/cpython/rev/6bc88d61f302 New changeset 477a143bfbfd by Ezio Melotti in branch '3.3': #18707: point to Doc/R

[issue18743] References to non-existant "StringIO" module

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, I missed it. Here is completed patch. -- Added file: http://bugs.python.org/file31321/doc_StringIO_refs_2.patch ___ Python tracker ___ ___

[issue18743] References to non-existant "StringIO" module

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't see StringIO in Doc/library/unittest.mock.rst. -- ___ Python tracker ___ ___ Python-bugs-l

[issue16799] start using argparse.Namespace in regrtest

2013-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16799] start using argparse.Namespace in regrtest

2013-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Eli. Could you please review issue17974 while I will write tests? As for a duplication I think about using vars(): def main(tests=None, testdir=None, verbose=0, quiet=False, ...): return _main(**vars()) def _main(tests, testdir

[issue16799] start using argparse.Namespace in regrtest

2013-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: Can't this be developed as an external extension? I don't see a reason to include it in the stdlib, especially if it requires other dependencies (like the pep8 module). -- nosy: +ezio.melotti status: open -> pending __

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-16 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file31320/connect_timeout-2.diff ___ Python tracker ___ ___ Python-bug

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated error handling patch testing for ENODEV. -- Added file: http://bugs.python.org/file31319/urandom_error2.patch ___ Python tracker ___ ___

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch to make os.urandom's fd persistent. -- type: behavior -> resource usage Added file: http://bugs.python.org/file31318/persistent_urandom_fd.patch ___ Python tracker _

[issue18757] Fix internal references for concurrent modules

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: Serhiy, seems you forgot to attach a patch. -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ __

[issue18652] Add itertools.first_true (return first true item in iterable)

2013-08-16 Thread R. David Murray
R. David Murray added the comment: For what it is worth, I am currently writing some email tests and it would certainly be convenient to have this. Of course I *can* define it locally in the the test file. -- ___ Python tracker

[issue18757] Fix internal references for concurrent modules

2013-08-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the documentation of concurrent modules: threading, multiprocessing, concurrent.futures, subprocess, queue, and select. -- assignee: docs@python components: Documentation messages: 195378 nosy: bqu

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So as of right now afaik none of the sources of cryptographically > secure random in the python stdlib offer a way to open a persistent > FD. The primary question on my mind is if os.urandom can't be modified > to maintain a persistent FD can Python offer a ura

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed to 3.3 and 3.4. Thank you very much! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c388e93879c4 by Antoine Pitrou in branch '3.3': Issue #1666318: Add a test that shutil.copytree() retains directory permissions. http://hg.python.org/cpython/rev/c388e93879c4 New changeset 8906713d5704 by Antoine Pitrou in branch 'default': Issue #1

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Donald Stufft
Donald Stufft added the comment: Looking at random.SystemRandom it appears it would suffer from the same FD exhaustion problem. So as of right now afaik none of the sources of cryptographically secure random in the python stdlib offer a way to open a persistent FD. The primary question on my

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why didn't you include ENODEV? > Apparently it can be reported in some corner cases, e.g. in this patch: > http://lfs-matrix.net/patches/downloads/linux/linux-2.6.14.2-pseudo_random-1.patch That isn't mentioned in the POSIX open() spec: http://pubs.opengroup.o

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Charles-François Natali
Charles-François Natali added the comment: > Attaching a patch to make error reporting better. Why didn't you include ENODEV? Apparently it can be reported in some corner cases, e.g. in this patch: http://lfs-matrix.net/patches/downloads/linux/linux-2.6.14.2-pseudo_random-1.patch Otherwise, wou

[issue16190] Misleading warning in random module docs

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9df0501fab35 by Antoine Pitrou in branch '3.3': Issue #16190: fix random module recommendation to use ssl.RAND_bytes(). http://hg.python.org/cpython/rev/9df0501fab35 New changeset 04b50a1eb013 by Antoine Pitrou in branch 'default': Issue #16190: fix

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue16190] Misleading warning in random module docs

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Done. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 3.2 ___ Python tracker ___ ___

  1   2   >