[issue15305] Test harness unnecessarily disambiguating twice

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Those two code chunks should really share code by the way I created issue 17283 for this (it's okay to fix the current issue before this one). -- ___ Python tracker ___

[issue17283] Lib/test/__main__.py should share code with regrtest.py

2013-02-23 Thread Chris Jerdonek
New submission from Chris Jerdonek: As discussed here: http://bugs.python.org/issue15305#msg182853 this issue is for Lib/test/__main__.py to share code with Lib/test/regrtest.py to minimize duplication of code: http://hg.python.org/cpython/file/96f08a22f562/Lib/test/regrtest.py#l1594 http://h

[issue15305] Test harness unnecessarily disambiguating twice

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would be happy to commit and watch the buildbots, once I have confidence in the patch though. Question: I noticed that the following was changed in Lib/test/regrtest.py: -with support.temp_cwd(TESTCWD, quiet=True): +with support.temp_cwd(quiet=True,

[issue17273] multiprocessing.pool.Pool task/worker handlers are not fork safe

2013-02-23 Thread Arun Babu Neelicattu
Arun Babu Neelicattu added the comment: Terry, I think the best place to make a note of this would be at [1,2]. As for what should be noted, something along the lines of what Richard mentioned should suffice. "A pool should only be used by the process that created it (unless you use a managed

[issue16401] mention PKG-INFO in the documentation

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: FYI, the fix for issue 16403 adds I believe the first mention of PKG-INFO to the docs (as an aside when discussing the maintainer field). However, a description of PKG-INFO, etc. should still be added somewhere. -- ___

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Manuel. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 2.7 ___ Python tracker

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6a26cd93825 by R David Murray in branch '3.2': #17275: Fix class name in init errors in C bufferedio classes. http://hg.python.org/cpython/rev/d6a26cd93825 New changeset aae2bb2e3195 by R David Murray in branch '3.3': Merge #17275: Fix class name i

[issue694374] Recursive regular expressions

2013-02-23 Thread Matthew Barnett
Matthew Barnett added the comment: FYI, I did eventually add it to my regex implementation. It was quite challenging! -- ___ Python tracker ___

[issue17279] Document which named built-in classes can be subclassed

2013-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The list given is for 3.3. 3.2 and 2.7 do not have SimpleNamespace. I do not have and currently cannot build 3.4 to test, but as of this moment, I expect it to be the same. In 2.7, range is xrange. Its types module includes aliases for builtins, such as IntTyp

[issue12455] urllib2 forces title() on header names, breaking some requests

2013-02-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17279] Document which named built-in classes can be subclassed

2013-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Such a list might differentiate between classes that are intentionally not subclassed and those for which subclassing simply has not yet been enabled. That might help eliminate the latter list. When I suggested on the python-ideas 'range' thread that people sh

[issue16942] urllib still doesn't support persistent connections

2013-02-23 Thread Demian Brecht
Demian Brecht added the comment: I've changed FileCookieJar to use the ABCMeta metaclass and updated the concrete implementations. If this patch looks sufficient, I'll make an update to the docs as well. -- keywords: +patch Added file: http://bugs.python.org/file29215/cookiejar_16942.p

[issue846817] control-c is being sent to child thread rather than main

2013-02-23 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue783528] Inconsistent results with super and __getattribute__

2013-02-23 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed superseder: -> super() and property inheritance behavior ___ Python tracker __

[issue747320] rfc2822 formatdate functionality duplication

2013-02-23 Thread R. David Murray
R. David Murray added the comment: I notice that logging has been updated. Only http.server's date_time_string remains (email.utils.formatdate does support the GMT form). -- components: +email versions: +Python 3.4 -Python 3.2 ___ Python tracker

[issue694374] Recursive regular expressions

2013-02-23 Thread R. David Murray
R. David Murray added the comment: Agreed that this is unlikely to ever get implemented given that Matthew doesn't think it should be. -- assignee: niemeyer -> nosy: +r.david.murray resolution: -> rejected stage: -> committed/rejected status: open -> closed _

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-23 Thread Larry Hastings
Larry Hastings added the comment: Okay, I have finally addressed all the comments so far. Changes described below are my patch #2. They're also checked in to https://bitbucket.org/larry/python-clinic/ . * Antoine, Nick, et al: I've converted clinic.txt into a PEP. I've already sent it to

[issue16942] urllib still doesn't support persistent connections

2013-02-23 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue675976] mhlib does not obey MHCONTEXT env var

2013-02-23 Thread R. David Murray
R. David Murray added the comment: The mailbox module provides tools for accessing an MH folder, but it does not do anything itself about folder management. That would be the province of a program using the mailbox module to implement an MUA. So, since mhlib is no more, this enhancement requ

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: > *defaultTest* should probably also be documented in the text I created issue 17282 for this. -- ___ Python tracker ___ __

[issue17282] document the defaultTest parameter to unittest.main()

2013-02-23 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to document the defaultTest parameter to unittest.main(): http://docs.python.org/dev/library/unittest.html#unittest.main Note that it is not enough simply to say that *defaultTest* is a "default test name or iterable of test names." The docume

[issue17100] rotating an ordereddict

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attaching proof of concept patch for rotate_at() and rotate_after(). I am now conviced that bare rotate() isn't very useful. -- keywords: +patch Added file: http://bugs.python.org/file29213/od_rotate.patch ___ Python

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch with tests. -- stage: -> patch review Added file: http://bugs.python.org/file29212/heapq_race2.patch ___ Python tracker ___ _

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4285d13fd3dc by Chris Jerdonek in branch 'default': Add a "Changed in version" to the docs for issue #15132. http://hg.python.org/cpython/rev/4285d13fd3dc -- ___ Python tracker

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: And a patch (for 2.7). -- keywords: +patch versions: +Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29211/heapq_race.patch ___ Python tracker __

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a reproducer. -- nosy: +pitrou Added file: http://bugs.python.org/file29210/stressheapq.py ___ Python tracker ___ __

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Birk Nilson
Birk Nilson added the comment: Sorry about that. Rookie mistake. I'm investigating it now and will get back with a revised & fully tested patch. -- ___ Python tracker ___ __

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: I can take care of the Changed in version. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Jyrki and Petri. I just noticed that a "Changed in version" should probably be added at the end of this section: http://docs.python.org/dev/library/unittest.html#unittest.main *defaultTest* should probably also be documented in the text (it currently

[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-02-23 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17263] crash when tp_dealloc allows other threads

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > - how do you know the crash really happens because of thread 5? > > All other threads are blocked on locks or condition variables, it's > the only runnable thread. Hm, you are right. > > Another question: are threads being started or stopped while the thre

[issue17263] crash when tp_dealloc allows other threads

2013-02-23 Thread Charles-François Natali
Charles-François Natali added the comment: > - how do you know the crash really happens because of thread 5? All other threads are blocked on locks or condition variables, it's the only runnable thread. > Another question: are threads being started or stopped while the thread local > object is

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Reverted the patch because of the broken netrc tests. This has to be investigated further. -- resolution: fixed -> stage: committed/rejected -> commit review ___ Python tracker _

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34f759fa5484 by Petri Lehtinen in branch '2.7': Revert "Issue #16121: Fix line number accounting in shlex" http://hg.python.org/cpython/rev/34f759fa5484 New changeset cda4a9dc415a by Petri Lehtinen in branch '3.2': Revert "Issue #16121: Fix line num

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread R. David Murray
R. David Murray added the comment: Something in this change seems to have broken netrc: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.3/builds/520 -- nosy: +r.david.murray status: closed -> open ___ Python tracker

[issue8489] Support RFC 6531 in smptlib

2013-02-23 Thread R. David Murray
R. David Murray added the comment: Thanks for the pointer. I keep reading "SMTPUTF8" as "SMTPUFF", but otherwise at a quick glance it looks like an improvement. -- title: Support UTF8SMTP as part of RFC 5336 in smptlib -> Support RFC 6531 in smptlib __

[issue16632] Enable DEP and ASLR

2013-02-23 Thread Devin Cook
Changes by Devin Cook : -- nosy: +devin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset e54ee8d2c16b by Petri Lehtinen in branch '2.7': Issue #16121: Fix line number accounting in shlex http://hg.python.org/cpython/rev/e54ee8d2c16b New changeset f1d19fdb254f by Petri Lehtinen in branch '3.2': Issue #16121: Fix line number accounting in

[issue10572] Move test sub-packages to Lib/test

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch attached to move Lib/lib2to3/tests to Lib/test/test_lib2to3. -- Added file: http://bugs.python.org/file29209/issue10572-lib2to3.patch ___ Python tracker ___

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: I took Xavier's patch and ported in on the 2.7. It'll probably go as is for 3.2. The functionality seems to be working and tests pass. -- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file29208/issue16446.patch _

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-23 Thread Birk Nilson
Birk Nilson added the comment: The implementation incremented the line number immediately when a newline was detected, even before the token had been processed completely - causing the issue Arfrever posted. This also caused the unexpected behavior of a tokens line number including the amount

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2013-02-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The change in 2.7 branch breaks some software, including a test of Django (produce_xml_fragment from https://github.com/django/django/blob/1.4.5/tests/regressiontests/test_utils/tests.py). The problem seems to not occur with Python 3.2, 3.3

[issue17267] datetime.time support for '+' and 'now'

2013-02-23 Thread Andreas Åkerlund
Andreas Åkerlund added the comment: Well I have also made a patch for this, using the datetime operator code as much as possible.. this is for version 3.4.. -- nosy: +thezulk Added file: http://bugs.python.org/file29206/issue17267-3.4.diff ___ Python

[issue7504] Same name cookies

2013-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Which also has patches. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17188] Document 'from None' in raise statement doc.

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: The patch should add something to the "The from clause is used for exception..." paragraph, to state that None is also allowed. It also adds things in a confusing order. I think the new example should go below other examples, and the changedversion and addedve

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy called subclassing 'particular and cumbersome'. 'Cumbersome' is an opinion. I consider subclassing elegant. The ease of doing so and specializing only what one needs to is a major feature of Python. It only took me a couple of minutes to whip up solution

[issue17267] datetime.time support for '+' and 'now'

2013-02-23 Thread Joar Wandborg
Joar Wandborg added the comment: New patch adressing the review comments. -- Added file: http://bugs.python.org/file29205/issue17267.patch ___ Python tracker ___

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2013-02-23 Thread Devin Cook
Devin Cook added the comment: This looks resolved. Can it be closed? -- nosy: +devin ___ Python tracker ___ ___ Python-bugs-list maili

[issue16403] update distutils docs to say that maintainer replaces author

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16403] update distutils docs to say that maintainer replaces author

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14144373fdcd by Petri Lehtinen in branch '2.7': Issue #16403: Document how distutils uses the maintainer field in PKG-INFO http://hg.python.org/cpython/rev/14144373fdcd New changeset b65b6a0ebd44 by Petri Lehtinen in branch '3.2': Issue #16403: Docu

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-23 Thread Manuel Jacob
Manuel Jacob added the comment: http://docs.python.org/3/library/array.html states that the 'u' type code is deprecated together with the rest of the Py_UNICODE API (which includes PyUnicode_FromUnicode), so keeping this using PyUnicode_FromUnicode should be fine. --

[issue10572] Move test sub-packages to Lib/test

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch attached to move sqlite3 tests under Lib/test, and remove Lib/test/test_sqlite.py. Naming of files has been kept the same in the move from Lib/sqlite/test, to allow for easier merging of future patches. -- keywords: +patch nosy: +gmwils Added file

[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2013-02-23 Thread David Lam
David Lam added the comment: looks like RFC 6531 obsoletes 5336 --> http://datatracker.ietf.org/doc/rfc6531/ (6531 says its the "Proposed Standard", whereas 5336 says its "Experimental" etc etc) -- ___ Python tracker

[issue17267] datetime.time support for '+' and 'now'

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Added some comments to Rietveld. -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-lis

[issue17263] crash when tp_dealloc allows other threads

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another question: are threads being started or stopped while the thread local object is being deleted? -- ___ Python tracker ___ __

[issue16037] httplib: header parsing is not delimited

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: ...and here's the patch for 3.2 -- Added file: http://bugs.python.org/file29203/issue16037_py32.patch ___ Python tracker ___ _

[issue11259] asynchat does not check if terminator is negative integer

2013-02-23 Thread Devin Cook
Devin Cook added the comment: I agree that this is probably a bug, but can't think of any instances where this in itself would cause a security issue. By sending something like a negative Content-Length, you do indeed get data returned that doesn't really match the data sent on the wire. If yo

[issue16037] httplib: header parsing is not delimited

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Here's a patch that limits the headers to 100. If more than _MAXHEADERS headers are read, this raises exception TooMuchHeaders. The patch is for 2.7, I'll cook one for 3.2 too. -- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file

[issue17093] Make importlib.abc more inheritance-friendly

2013-02-23 Thread Gökcen Eraslan
Changes by Gökcen Eraslan : -- nosy: +gkcn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17130] Add runcall() function to profile.py and cProfile.py

2013-02-23 Thread Björn Skoglund
Björn Skoglund added the comment: Look at that. Sorry, totally missed it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17267] datetime.time support for '+' and 'now'

2013-02-23 Thread Joar Wandborg
Joar Wandborg added the comment: Patch submitted, please review. -- keywords: +patch nosy: +joar Added file: http://bugs.python.org/file29200/issue17267.patch ___ Python tracker

[issue17263] crash when tp_dealloc allows other threads

2013-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have two questions: - how do you know the crash really happens because of thread 5? - when the thread.local object is being deleted, has another thread just started looking up its attributes? -- ___ Python tracker

[issue17130] Add runcall() function to profile.py and cProfile.py

2013-02-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I already posted a patch in issue 9285. Maybe we should close this one as a duplicate. -- ___ Python tracker ___

[issue16041] poplib: unlimited readline() from connection

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Added a functionality that raises error_proto('line too long') if we read over _MAXLINE characters. Defaults _MAXLINE to 2048. The patch is written on top of 2.7 -- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file29198/issue1604

[issue17188] Document 'from None' in raise statement doc.

2013-02-23 Thread Dennis Mårtensson
Dennis Mårtensson added the comment: We have added the from None to the documentation with a explanation and some example code. -- keywords: +patch nosy: +m...@dennis.is Added file: http://bugs.python.org/file29199/patch17188.patch ___ Python tracker

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-02-23 Thread Michael Foord
Michael Foord added the comment: As we're specifying this behaviour in the documentation it would be nice to test it. -- stage: patch review -> test needed ___ Python tracker __

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: The patch looks good to me. -- nosy: +petri.lehtinen stage: needs patch -> patch review ___ Python tracker ___ _

[issue16695] Clarify fnmatch & glob docs about the handling of leading "."s

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue16695] Clarify fnmatch & glob docs about the handling of leading "."s

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b96dcdac419 by Petri Lehtinen in branch '2.7': Issue #16695: Document how glob handles filenames starting with a dot http://hg.python.org/cpython/rev/2b96dcdac419 New changeset b4434cbca953 by Petri Lehtinen in branch '3.2': Issue #16695: Document

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-02-23 Thread Martin Melin
Martin Melin added the comment: Not sure if there was anything more to it than this, but please find an attempt to add this attached. -- keywords: +patch nosy: +mmelin Added file: http://bugs.python.org/file29197/issue16709.patch ___ Python tracker

[issue15566] tarfile.TarInfo.frombuf documentation is out of date

2013-02-23 Thread Andy Holst
Andy Holst added the comment: The documentation updated for the tarfile.rst document. The arguments encoding and errors are added to tarfile.TarInfo.frombuf method. Patch uploaded. -- keywords: +patch nosy: +StealthAsimov Added file: http://bugs.python.org/file29196/issue15566.patch __

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker _

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 488957f9b664 by Petri Lehtinen in branch '2.7': Issue #8890: Stop advertising an insecure use of /tmp in docs http://hg.python.org/cpython/rev/488957f9b664 New changeset 7556601180c8 by Petri Lehtinen in branch '3.2': Issue #8890: Stop advertising a

[issue16802] fileno argument to socket.socket() undocumented

2013-02-23 Thread Henrik Heimbuerger
Henrik Heimbuerger added the comment: Here's a suggestion for a documentation addition. Comments on tone and content are welcome, and I'm willing to update it and submit modified patch files. This adds the following note: If a file descriptor *fileno* is specified, the other arguments

[issue12226] use HTTPS by default for uploading packages to pypi

2013-02-23 Thread Devin Cook
Changes by Devin Cook : -- nosy: +devin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue14720] sqlite3 microseconds

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker __

[issue14720] sqlite3 microseconds

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6911df35b7b6 by Petri Lehtinen in branch '2.7': Issue #14720: sqlite3: Convert datetime microseconds correctly http://hg.python.org/cpython/rev/6911df35b7b6 New changeset 46d5317a51fb by Petri Lehtinen in branch '3.2': Issue #14720: sqlite3: Convert

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e2bfe6b227a by Petri Lehtinen in branch 'default': Issue #15132: Allow a list for the defaultTest argument of unittest.TestProgram http://hg.python.org/cpython/rev/4e2bfe6b227a -- nosy: +python-dev ___ P

[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2013-02-23 Thread Andreas Åkerlund
Andreas Åkerlund added the comment: This is a patch against 3.2 adding urllib.parse.quote_uri It splits the URI in 5 parts (protocol, authentication, hostname, port and path) then runs urllib.parse.quote on the path and encodes the hostname to punycode if it's not in ascii. It's not perfect,

[issue11671] Security hole in wsgiref.headers.Headers

2013-02-23 Thread Devin Cook
Devin Cook added the comment: backported patch to 2.6 -- Added file: http://bugs.python.org/file29193/header_newlines_2.6.patch ___ Python tracker ___ ___

[issue11671] Security hole in wsgiref.headers.Headers

2013-02-23 Thread Devin Cook
Devin Cook added the comment: backported patch to 2.7 -- Added file: http://bugs.python.org/file29192/header_newlines_2.7.patch ___ Python tracker ___ ___

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Attaching patch for 3.3 that also works for 3.4/default (Issue8890-3.3.patch) -- Added file: http://bugs.python.org/file29191/Issue8890-3.3.patch ___ Python tracker __

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Attaching patch for 3.2 (Issue8890-3.2.patch) -- Added file: http://bugs.python.org/file29190/Issue8890-3.2.patch ___ Python tracker ___ __

[issue11063] uuid.py module import has heavy side effects

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: The implementation does not actually end up in infinite loop, just repeating the loading of the CDLL is slow. I added caching to that and fixed the ctypes imports too. -- nosy: +nailor Added file: http://bugs.python.org/file29189/issue11063_2.patch

[issue14720] sqlite3 microseconds

2013-02-23 Thread Lowe Thiderman
Lowe Thiderman added the comment: Add patch for 2.7 branch with regression test. -- keywords: +patch Added file: http://bugs.python.org/file29188/issue14720.diff ___ Python tracker _

[issue14720] sqlite3 microseconds

2013-02-23 Thread Lowe Thiderman
Lowe Thiderman added the comment: > Can convert_timestamp(val) be implemented as > datetime.datetime.strptime(val.decode(), '%Y-%m-%d %H:%M:%S.%f')? No. The microseconds are not always included, as can be seen by the current implementation. Nice idea though! -- nosy: +thiderman _

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-02-23 Thread Gökcen Eraslan
Changes by Gökcen Eraslan : -- nosy: +gkcn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17115] __loader__ = None should be fine

2013-02-23 Thread Gökcen Eraslan
Changes by Gökcen Eraslan : -- nosy: +gkcn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15305] Test harness unnecessarily disambiguating twice

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Looks good to me, and all tests also pass on my Ubuntu 12.10. Chris: Would you be willing to commit this and watch the buildbots do their job? Or do the buildbots even use the -j option? -- nosy: +petri.lehtinen ___

[issue13952] mimetypes doesn't recognize .csv

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch against 2.7 to add csv to the internal list. It is popular enough as a format, that it should work even if the system mime files are stale. -- keywords: +patch nosy: +gmwils Added file: http://bugs.python.org/file29187/issue13952.patch

[issue17116] xml.parsers.expat.(errors|model) don't set the __loader__ attribute

2013-02-23 Thread Gökçen Eraslan
Gökçen Eraslan added the comment: Should this be done in Modules/pyexpat.c file or in Lib/xml/parsers/expat.py? If modifying expat.py is sufficient, then attached simple patch does the job. By the way I couldn't find the test you are referring to. Is it in Lib/test/test_importlib of somewhere

[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2013-02-23 Thread R. David Murray
R. David Murray added the comment: Well, this issue changed into a feature request for UTF8SMTP support, which I do intend to implement at some point. It does indeed appear like the original problem (not converting unicode strings into ASCII) was fixed in 2.7 at some point, though, which is

[issue17263] crash when tp_dealloc allows other threads

2013-02-23 Thread Albert Zeyer
Albert Zeyer added the comment: Sadly, that is quite complicated or almost impossible. It needs the MacOSX system Python and that one lacks debugging information. I just tried with the CPython vom hg-2.7. But it seems the official Python doesn't have objc bindings (and I also need Cocoa bindin

[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2013-02-23 Thread Henrik Heimbuerger
Henrik Heimbuerger added the comment: Almost identical patch for 3.2, just differs in line numbers. -- Added file: http://bugs.python.org/file29185/issue11367_branch32.diff ___ Python tracker __

[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2013-02-23 Thread Henrik Heimbuerger
Henrik Heimbuerger added the comment: Attached patch file for the 2.7 branch. They not only touch find(), but also findtext(), which has the mistake in the documentation. Also does some related changes in the module's code comments. -- keywords: +patch nosy: +hheimbuerger Added file: h

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch for 2.7, with most references to /tmp removed or replaced. References remain in Doc/install/index.rst and Doc/library/rexec.rst as they seem to make sense in context. -- nosy: +gmwils Added file: http://bugs.python.org/file29183/Issue8890.patch __

[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-23 Thread Andreas Pelme
Andreas Pelme added the comment: This seems like an oversight from http://bugs.python.org/issue15473 The release notes for 3.3 added a note about this: "Because None is now inserted into sys.path_importer_cache, if you are clearing out entries in the dictionary of paths that do not have a find

[issue11671] Security hole in wsgiref.headers.Headers

2013-02-23 Thread Devin Cook
Devin Cook added the comment: Should now be compliant with this part of the spec: "Each header_value must not include any control characters, including carriage returns or linefeeds, either embedded or at the end. (These requirements are to minimize the complexity of any parsing that must be p

  1   2   >