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

[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

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

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

[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 Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Fix internal doc references for logging package, Fix internal doc references for the xml package ___ Python tracker ___ _

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

[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

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

[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

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

[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

[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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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 Antoine Pitrou
Antoine Pitrou added the comment: Your commit forgot to remove sqlitecompat.h. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[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

[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

[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

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

[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

[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

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

[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

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

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

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

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

[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
Changes by Christian Heimes : Added file: http://bugs.python.org/file31331/CVE-2013-4238-py32.patch ___ Python tracker ___ ___ Python-bugs-lis

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

[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

[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

[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

[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

[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

[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

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

[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

[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

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

<    1   2