[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-08-27 Thread Eric Snow
New submission from Eric Snow: This ticket will track the implementation for PEP 451 (ModuleSpec). I'll have a patch up in the next couple days. -- assignee: eric.snow components: Interpreter Core, Library (Lib) messages: 196352 nosy: eric.snow priority: normal severity: normal stage:

[issue18863] Encoding a unicode with unicode() and ignoring errors

2013-08-27 Thread Ned Deily
Ned Deily added the comment: See http://docs.python.org/2/library/functions.html#unicode. It appears to me that unicode() is behaving exactly as documented. In particular: "If encoding and/or errors are given, unicode() will decode the object which can either be an 8-bit string or a character

[issue18863] Encoding a unicode with unicode() and ignoring errors

2013-08-27 Thread G. Scott Johnston
New submission from G. Scott Johnston: I've come up with the following series of minimal examples to demonstrate my bug. >>> unicode("") u'' >>> unicode("", errors="ignore") u'' >>> unicode("abcü") Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'ascii' codec c

[issue18859] README.valgrind should mention --with-valgrind

2013-08-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-27 Thread Charles-François Natali
Charles-François Natali added the comment: 14.1 --- a/Lib/multiprocessing/util.py 14.2 +++ b/Lib/multiprocessing/util.py 14.13 # 14.14 # Return pipe with CLOEXEC set on fds 14.15 # 14.16 +# Deprecated: os.pipe() creates non-inheritable file descriptors 14.17 +# since Python

[issue18836] Potential race condition in exceptions

2013-08-27 Thread Charles-François Natali
Charles-François Natali added the comment: > If it is intended not to be able to catch all exceptions > and prevent a traceback being showed this should be indeed a PEP. You may want to have a look at sys.excepthook. -- nosy: +neologix ___ Python tra

[issue17741] event-driven XML parser

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: > the push API is inactive and gets redirected to a pull API Given that this is aimed to become a redundant 'convenience' wrapper around something else at a point, I assume that you are aware that the above is just an arbitrary restriction due to the fact that

[issue18859] README.valgrind should mention --with-valgrind

2013-08-27 Thread Tim Peters
Changes by Tim Peters : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue18862] Implement __subclasshook__() for Finders and Loaders in importlib.abc

2013-08-27 Thread Eric Snow
New submission from Eric Snow: It would be helpful to have __subclasshook__() implemented on the finders and loaders in importlib.abc, following the approach taken by ABCs in collections.abc. This came up relative to PEP 431, but would be generally useful (if only to a limited audience ). --

[issue18861] Problems with recursive automatic exception chaining

2013-08-27 Thread Nikolaus Rath
Nikolaus Rath added the comment: The second paragraph should of course read "...consequence of the 'First' exception *and* should thus be chained..." -- ___ Python tracker ___ _

[issue18861] Problems with recursive automatic exception chaining

2013-08-27 Thread Nikolaus Rath
New submission from Nikolaus Rath: Consider this: $ python3 test_exc.py Traceback (most recent call last): File "test_exc.py", line 14, in fail1() File "test_exc.py", line 11, in fail1 fail2() File "test_exc.py", line 5, in fail2 raise RuntimeError('Third') from None RuntimeE

[issue18780] SystemError when formatting int subclass

2013-08-27 Thread Ethan Furman
Ethan Furman added the comment: Okay, simple fix, patch and tests attached. -- keywords: +patch nosy: +ncoghlan stage: -> patch review Added file: http://bugs.python.org/file31492/issue18780.stoneleaf.01.patch ___ Python tracker

[issue18860] Add content manager API to email package

2013-08-27 Thread R. David Murray
New submission from R. David Murray: Here is a patch, layered on top of the patch in issue 18785, to add the content manager support. This patch contains only the base ContentManager class, not the proposed functional registries. -- components: email files: contentmanager.patch keywor

[issue18860] Add content manager API to email package

2013-08-27 Thread R. David Murray
Changes by R. David Murray : -- dependencies: +Add get_body and iter_attachments to provisional email API ___ Python tracker ___ ___ P

[issue18606] Add statistics module to standard library

2013-08-27 Thread Oscar Benjamin
Oscar Benjamin added the comment: On Aug 28, 2013 1:43 AM, "janzert" wrote: > > Seems that the discussion is now down to implementation issues and the PEP is at the point of needing to ask python-dev for a PEP dictator? I would say so. AFAICT Steven has addressed all of the issues that have bee

[issue18606] Add statistics module to standard library

2013-08-27 Thread janzert
janzert added the comment: Seems that the discussion is now down to implementation issues and the PEP is at the point of needing to ask python-dev for a PEP dictator? -- nosy: +janzert ___ Python tracker _

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Tim Peters
Tim Peters added the comment: I opened issue 18859 about the lack of --with-valgrind info in Misc/README.valgrind. Thanks for noticing! -- ___ Python tracker ___ __

[issue18859] README.valgrind should mention --with-valgrind

2013-08-27 Thread Tim Peters
New submission from Tim Peters: In issue 18843 a user noted that Misc/README.valgrind doesn't mention the --with-valgrind configure option. It probably should. But since I've never used valgrind, I'm not the guy to do it ;-) -- components: Build messages: 196338 nosy: tim.peters prio

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Martin Mokrejs
Martin Mokrejs added the comment: I was just checking whether configure picked up my --with-pymalloc and incidentally saw: --with-valgrind Enable Valgrind support maybe Misc/README.valgrind needs revision and should explain what that does as well? ;-) It should also explain what is

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Tim Peters
Tim Peters added the comment: I don't know why there isn't a configure switch for this - but then I've never used valgrind - LOL ;-) Other developers use valgrind on Python routinely, though. So it's unlikely you'll find a legitimate problem _in Python_ reported by valgrind. --

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Martin Mokrejs
Martin Mokrejs added the comment: No, I did not know that. Thanks, I did now. * Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c, then rebuild Python * Uncomment the lines in Misc/valgrind-python.supp that suppress the warnings for PyObject_Free and PyObject_Realloc Why i

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Tim Peters
Tim Peters added the comment: Did you read Misc/README.valgrind (in the Python tree)? The warnings you've seen so far are probably all nonsense, and README.valgrind explains how to avoid getting them. -- ___ Python tracker

[issue17070] PEP 433: Use the new cloexec to improve security and avoid bugs

2013-08-27 Thread STINNER Victor
STINNER Victor added the comment: The PEP 446 has been implemented (see issue #18571), this issue can be closed. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue16946] subprocess: _close_open_fd_range_safe() does not set close-on-exec flag on Linux < 2.6.23 if O_CLOEXEC is defined

2013-08-27 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in the implementation of the PEP 446 (issue #18571). -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2013-08-27 Thread STINNER Victor
STINNER Victor added the comment: Sockets are now created non-inheritable in Python 3.4. See the PEP 446 for more information (PEP implemented in the issue #18571). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue10115] Support accept4() for atomic setting of flags at socket creation

2013-08-27 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10115] Support accept4() for atomic setting of flags at socket creation

2013-08-27 Thread STINNER Victor
STINNER Victor added the comment: Python 3.4 now uses accept4() internally for socket.socket.accept(), the new socket is created non-inheritable. See the PEP 446 for more information (PEP implemented in the issue #18571). -- resolution: -> fixed status: open -> closed ___

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef889c3d5dc6 by Victor Stinner in branch 'default': Issue #18571: Implementation of the PEP 446: file descriptors and file handles http://hg.python.org/cpython/rev/ef889c3d5dc6 -- nosy: +python-dev ___ Py

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-27 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Martin Mokrejs
Martin Mokrejs added the comment: Incidentally I read today http://blastedbio.blogspot.co.uk/2012/05/blast-tabular-missing-descriptions.html mentioning ^A being used. Maybe that would stop working? -- nosy: +mmokrejs ___ Python tracker

[issue17741] event-driven XML parser

2013-08-27 Thread Eli Bendersky
Eli Bendersky added the comment: W.r.t. the summary in http://bugs.python.org/msg196177, after some further chat with Nick, a name that sounds good for us for the class is XMLPullParser. It has both XML and Parser in it, so the intention is clear. On the other hand, Pull works well for analogy

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-27 Thread Martin Mokrejs
Martin Mokrejs added the comment: I took a crack from another angle. I converted my application using cython and then used gcc. Finally, ran valgrind over the binary. It is not finished yet but already spotted plenty of hints. -- Added file: http://bugs.python.org/file31490/python2.7_

[issue18731] Increased test coverage for uu and telnet

2013-08-27 Thread Alex Volkov
New submission from Alex Volkov: Okay, I'm submitting the patch just for uu / test_uu. I replaced all try/finally statemets with 'with' context, added try..finally statement for both test cases. uu.py, line 61 is exposed by test_encode_osstat_assert -- os.stat is duckpunched out of the syste

[issue17741] event-driven XML parser

2013-08-27 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, Stefan, I missed your last comment before posting mine. It appears you had already reached the same conclusion I had regarding further high level design discussion being pointless :) -- ___ Python tracker

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-27 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31488/ca6217fbec85.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-08-27 Thread Nick Coghlan
Nick Coghlan added the comment: I'd also be fine with "is_carrier_private", or, as you say, the inverse "is_global" for "not is_private and not is_carrier_private and not (any of the other private addresses)" (assuming I understood that suggestion correctly). I guess the "is_global" one is the m

[issue17741] event-driven XML parser

2013-08-27 Thread Nick Coghlan
Nick Coghlan added the comment: Stefan, your proposed merged design isn't going to happen. Two alternative ways of using the one class is far more complicated to explain to users than exposing a helper that composes the existing API components to address a particular use case (particularly when t

[issue18858] dummy_threading lacks threading.get_ident() equivalent

2013-08-27 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: In Python 3.3 threading.get_ident() has been added as a public and documented function, but there is no dummy_threading.get_ident(): >>> import threading, dummy_threading >>> threading.get_ident() 139974728402752 >>> dummy_threading.get_ident

[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-08-27 Thread pmoody
pmoody added the comment: The problem is that 'shared' describes exactly one network, unless you mean that we should try to start 'private' as 'shared'. That's something I really don't want to do because it leads to confusion like this. Do you not think that is_global or is_forwardable (per th

[issue18857] urlencode of a None value uses the string 'None'

2013-08-27 Thread Joshua Johnston
Joshua Johnston added the comment: Hi David, That is what I would expect it to do as well. I'm relatively new to Python but this is causing all kinds of problems with oauth signing using ims_lti_py as well as my own code using urlencode. -- ___ Pyt

[issue18855] Inconsistent README filenames

2013-08-27 Thread Madison May
Madison May added the comment: It's obviously low priority, just thought I would mention it. I found it a bit odd that "README" is used, though, since that means users will likely have to select the program they want to use to open the file (in Windows, at least). It might also be nice to f

[issue18857] urlencode of a None value uses the string 'None'

2013-08-27 Thread R. David Murray
R. David Murray added the comment: In Python the str of a None value is indeed 'None', just as the str of a True value is 'True'. Unless the protocol to which you are encoding supports null values, you shouldn't be using None values in the input to the serialization. If you want an empty str

[issue18857] urlencode of a None value uses the string 'None'

2013-08-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18855] Inconsistent README filenames

2013-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: No reason really. We could standardize all of them on README.txt, perhaps. -- nosy: +pitrou priority: normal -> low versions: +Python 3.4 ___ Python tracker ___

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: Or maybe even to "enhancement". The behaviour that it writes out what you give it isn't exactly wrong, it's just inconvenient that you have to take care yourself that you pass it well-formed XML content. -- ___ Pytho

[issue18857] urlencode of a None value uses the string 'None'

2013-08-27 Thread Joshua Johnston
New submission from Joshua Johnston: This is strange behavior. When you encode nulls in other languages you don't get the string 'null' you usually get an empy string. Shouldn't str(None) == ''? If not str(None) == 'None' and the string representation of a None value should not match a known s

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: > The parser is *not* rejecting control chars. The parser *is* rejecting control characters. It's an XML parser. See the example in the link you posted. > assume you have a script that simply stores each message it receives (from > stdin, from a tcp stream, w

[issue18856] Added test coverage for calendar print functions

2013-08-27 Thread Madison May
Madison May added the comment: "...to a string io object USING unittest.mock.patch()..." -- ___ Python tracker ___ ___ Python-bugs-lis

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-08-27 Thread Thomas Weißschuh
Changes by Thomas Weißschuh : -- nosy: +t-8ch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue18856] Added test coverage for calendar print functions

2013-08-27 Thread Madison May
New submission from Madison May: Just redirected stdout to a string io object unittest.mock.patch() to add basic test coverage for calendar.py print functions (TextCalendary.prweek(), TextCalendar.prmonth(), TextCalendar.pryear(), and format()). -- components: Tests files: calendar_pri

[issue18564] Integer overflow in socketmodule

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: oops, didn't see :) thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for the status code, it looks like a bash bug: Your script gives different results here (on Ubuntu): $ ulimit -c 0 $ ./python dumpcore.py 6: False $ ulimit -c unlimited $ ./python dumpcore.py 6: False That's because Ubuntu overrides the core file patter

[issue18830] Remove duplicates from a result of getclasstree()

2013-08-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: What about if you extend the test coverage as well? Right now, we don't have test to test getclasstree method with unique parameter set to false. -- nosy: +vajrasky ___ Python tracker

[issue16083] HTTPServer does not correctly handle bad request line

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Still is an issue, though. Exported on the current tip. -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file31486/issue16083.1.patch ___ Python tracker

[issue18564] Integer overflow in socketmodule

2013-08-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, haven't you seen Charles-François' comments on the review tool? Click on the "review" link next to your patch :-) -- ___ Python tracker ___

[issue18564] Integer overflow in socketmodule

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18830] Remove duplicates from a result of getclasstree()

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list ma

[issue18783] No more refer to Python "long"

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18783] No more refer to Python "long"

2013-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ezio and Terry for reviews. > I presume you thought about it carefully in context. Yes. Here can be any different types for which instances can be equal (1 == 1L, 1.0 == 1.0+0.0j). > This kind of changes are a bit out of place in a patch like this

[issue18783] No more refer to Python "long"

2013-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d62a62ba44d by Serhiy Storchaka in branch '3.3': Issue #18783: Removed existing mentions of Python long type in docstrings, http://hg.python.org/cpython/rev/4d62a62ba44d New changeset 0872257752c2 by Serhiy Storchaka in branch 'default': Issue #187

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread R. David Murray
R. David Murray added the comment: There is no easy way to merge accounts in roundup. If you've submitted the agreement, your "*" should show up in a bit :) -- ___ Python tracker _

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Matt McClure
Matt McClure added the comment: Andrew, I signed the agreement as matthewlmcclure and as matthewlmcclure-gmail. Is there any way I can merge those two user accounts? I believe the original patch was Tom Wardill's. I just updated his patch. -- nosy: +matthewlmcclure __

[issue18855] Inconsistent README filenames

2013-08-27 Thread Madison May
New submission from Madison May: Is there any reason (other than backwards compatibility) that the names of README files are inconsistent? README: 3 instances - root, /Mac, /Misc, /Tools readme.txt: 2 instances - /PC, /PCbuild README.txt: 1 instance - /Doc -- assignee: docs@python comp

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: > Michele, could you elaborate how you would exploit this issue as a security > risk? Sure. What I meant in my message is: assume you have a script that simply stores each message it receives (from stdin, from a tcp stream, whatever) inside an xml tree like '{m

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Matt, would you sign licence agreement http://www.python.org/psf/contrib/ ? The Python Software Fondation is asking all contributors to sign it. Thanks. -- ___ Python tracker _

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: Michele, could you elaborate how you would exploit this issue as a security risk? I mean, I can easily create a (non-)XML-document with control characters manually, and the parser would reject it. What part of the create-to-serialise process exactly is a probl

[issue17741] event-driven XML parser

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: Eli, I agree that we've put way more than enough time into the discussion by now. We all know each other's arguments and failed to convince each other. Please come up with working code that shows that the approach you are advocating for the final implementation

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue7727. Almost any other XML generation code (xml.sax.sautils.XMLGenerator, xml.dom.minidom.Element.writexml(), etc, but not plistlib.PlistWriter) has the same problem. The problem with filtering control characters is that it will significantly

[issue18852] site.py does not handle readline.__doc__ being None

2013-08-27 Thread R. David Murray
R. David Murray added the comment: I don't think __doc__ can ever not exist, so that code is just wrong :) -- keywords: +easy nosy: +r.david.murray stage: -> needs patch title: Problem with pyreadline -> site.py does not handle readline.__doc__ being None _

[issue18854] is_multipart and walk should document their treatment of 'message' parts.

2013-08-27 Thread R. David Murray
New submission from R. David Murray: A 'message' part is not, in fact, a multipart in RFC terms. (Only 'multipart' messages are multiparts.) The email package models 'message' parts by making them single-element "multipart" messages, with the single element being a Message object representin

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2013-08-27 Thread Vajrasky Kok
New submission from Vajrasky Kok: The python is compiled with --with-pydebug flag. [sky@localhost cpython]$ cat /tmp/quote.txt manly "man" likes 'cute "cat"' [sky@localhost cpython]$ ./python Lib/shlex.py /tmp/quote.txt Token: 'manly' Token: '"man"' Token: 'likes' Token: '\'cute "cat"\'' sys:1

[issue17741] event-driven XML parser

2013-08-27 Thread Eli Bendersky
Eli Bendersky added the comment: I'm sorry if I sound offensive, but most of what I read as counter > arguments in this ticket so far was either incomplete or (sometimes) even > plain wrong. Some seemed pretty close to FUD, but maybe that's just me (and > I'm guilty here too, I guess - sorry for

[issue18836] Potential race condition in exceptions

2013-08-27 Thread Sworddragon
Sworddragon added the comment: > Unless I'm completely misunderstanding (which I don't think I am), this is > not a race condition, it is how the language is designed to operate. If it is intended not to be able to catch all exceptions and prevent a traceback being showed this should be indeed

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread R. David Murray
R. David Murray added the comment: In that case, the fix needs to be applied to 3.2 and 2.6 as well. Or at least considered for application. It could be that this will break working (though dangerous) programs. I'll leave it to folks more knowledgeable in this particular area than I to deci

[issue18848] In unittest.TestResult .startTestRun() and .stopTestRun() methods don't work

2013-08-27 Thread Michael Foord
Michael Foord added the comment: It is the TextTestRunner that calls startTestRun and stopTestRun not the suite. The documentation could be improved to make that clear *or* the call could be moved into the TestSuite as not everybody uses the TextTestRunner. That would be a change in behaviour

[issue18848] In unittest.TestResult .startTestRun() and .stopTestRun() methods don't work

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18852] Problem with pyreadline

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: I suppose it is, David, if in 2 minutes flat I can change your terminal name. -- Added file: http://bugs.python.org/file31484/inject.py ___ Python tracker ___

[issue18852] Problem with pyreadline

2013-08-27 Thread Thomas Heller
New submission from Thomas Heller: In site.py, line 477, I find this code: # Reading the initialization (config) file may not be enough to set a # completion key, so we set one first and then read the file if 'libedit' in getattr(readline, '__doc__', ''): read

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gregory.p.smith, pitrou versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list maili

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread R. David Murray
R. David Murray added the comment: Unless it is a security issue, this seems like the kind of fix that shouldn't be applied to maintenance releases. -- nosy: +r.david.murray ___ Python tracker

[issue18848] In unittest.TestResult .startTestRun() and .stopTestRun() methods don't work

2013-08-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18836] Potential race condition in exceptions

2013-08-27 Thread R. David Murray
R. David Murray added the comment: Unless I'm completely misunderstanding (which I don't think I am), this is not a race condition, it is how the language is designed to operate. The change you are proposing is a language-design level change that would require a PEP. The appropriate place to

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Michael Foord
Michael Foord added the comment: Go ahead and commit. The functionality and patch are good. -- ___ Python tracker ___ ___ Python-bugs-

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Matt, I've added new patch. Will commit it after tomorrow if nobody object. -- Added file: http://bugs.python.org/file31483/issue11798.diff ___ Python tracker

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: Go for it. That's usually the fastest way to get things done. -- ___ Python tracker ___ ___ Python-bu

[issue18800] Document Fraction's numerator and denominator properties

2013-08-27 Thread Madison May
Madison May added the comment: The docs page does mention, however, that Fraction inherits from numbers.Rational, and links to that page (http://docs.python.org/2/library/numbers.html#numbers.Rational). There the properties 'numerator' and 'denominator' are clearly documented. Perhaps its st

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: you mind if I try by myself to provide patch and unittest in the next few days? -- ___ Python tracker ___

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: This is a bit tricky in ET because it generally allows you to stick anything into the Element properties (and that's a feature). So catching this at tree building time (as lxml.etree does) isn't really possible. However, at least catching it in the serialiser s

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-27 Thread Jan-Wijbrand Kolman
New submission from Jan-Wijbrand Kolman: An internal library that heavily uses subprocess.Popen() started failing its automated tests when we upgraded from Python 2.7.3 to Python 2.7.5. This library is used in a threaded environment. After debugging the issue, I was able to create a short Pyth

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl, ncoghlan, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky, scoder, serhiy.storchaka versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Matt McClure
Matt McClure added the comment: Andrew, I didn't understand your message. Are you asking me to change the patch somehow? Or asking Michael to review and apply it? Best, Matt -- ___ Python tracker ___

[issue17741] event-driven XML parser

2013-08-27 Thread Stefan Behnel
Stefan Behnel added the comment: > The whole point of the new API is not to replace XMLParser, but to provide a > convenience API to set up a particular combination of an XMLParser with a > particular kind of custom target. Ok, but I'm saying that we don't need that. It's all there, it all com

[issue11798] Test cases not garbage collected after run

2013-08-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good but review comments worth to be applied or rejected with reasonable note. -- nosy: +asvetlov ___ Python tracker ___

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-27 Thread Charles-François Natali
Charles-François Natali added the comment: The test works for me. The only problem is that faulthandler dumps a stack: it might be better to use subprocess with stderr=devnull). As for the status code, it looks like a bash bug: """ $ cat /tmp/test_core.py import os if os.fork() == 0: os.abo

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Changes by Michele Orrù : -- components: +Library (Lib), XML type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
New submission from Michele Orrù: Got from irc; python bug in xml.etree.ElementTree, from version 2.7 to 3.2 http://www.reddit.com/r/Python/comments/1l6cta/python_bug_in_xmletreeelementtree/ I think we should keep consistency with lxml and forbid control chars in advance.

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2013-08-27 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

  1   2   >