[issue22184] lrucache should reject maxsize as a function

2014-08-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21166] Bus error in pybuilddir.txt 'python -m sysconfigure --generate-posix-vars' build step

2014-08-11 Thread koobs
koobs added the comment: :DDD This was an awesome experience working with you Ned, thanks for all the help. Attaching my debugging & isolation steps for additional detail, posterity and reference. -- Added file: http://bugs.python.org/file36356/python-buildbot-broken-debugging.txt _

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-08-11 Thread Nikolaus Rath
Nikolaus Rath added the comment: *ping* -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22184] lrucache should reject maxsize as a function

2014-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch stage: -> patch review type: -> behavior versions: +Python 3.4 Added file: http://bugs.python.org/file36355/lru.diff ___ Python tracker _

[issue22184] lrucache should reject maxsize as a function

2014-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low versions: +Python 3.5 ___ Python tracker ___ ___ Py

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-08-11 Thread Ned Deily
Ned Deily added the comment: This appears to be another variation on the problem recently identified in Issue21166, namely that the pybuildir.txt Makefile rule can incorrectly import a shared library module from a previously installed Python instance and, if the ABIs of the installed and being

[issue21166] Bus error in pybuilddir.txt 'python -m sysconfigure --generate-posix-vars' build step

2014-08-11 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file36354/issue21166_3x.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21166] Bus error in pybuilddir.txt 'python -m sysconfigure --generate-posix-vars' build step

2014-08-11 Thread Ned Deily
Ned Deily added the comment: This problem has reappeared on some of the freebsd buildbots, for example: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%202.7/builds/507 Thanks to a lot of good work by koobs in investigating and documenting the problems in irc, we have figured out

[issue20746] test_pdb fails in refleak mode

2014-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The regrtest.py part has been fixed independently in #22104 (thank you Zachary). I've now pushed the rest of the patch for test_pdb. Thank you Xavier! -- nosy: +zach.ware resolution: -> fixed stage: needs patch -> resolved status: open -> closed versio

[issue20746] test_pdb fails in refleak mode

2014-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset df832e0c6d7d by Antoine Pitrou in branch '3.4': Issue #20746: Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye. http://hg.python.org/cpython/rev/df832e0c6d7d New changeset d2041159e8ed by Antoine Pitrou in branch 'default': Issue

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-08-11 Thread Dan O'Reilly
Dan O'Reilly added the comment: A couple of small updates based on comments from Charles-François Natali: * Use itertools.chain.from_iterable to "yield from" the result chunks instead of a for loop. * Add more tests with varying chunksizes. -- Added file: http://bugs.python.org/file36

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-11 Thread Tim Peters
Tim Peters added the comment: +1. I agree it's a bug, that the diagnosis is correct, and that the patch will fix it :-) -- ___ Python tracker ___ __

[issue16434] SocketServer call shutdown in the wrong way

2014-08-11 Thread R. David Murray
R. David Murray added the comment: Given the lack of additional info from the OP, I'm closing this. -- nosy: +r.david.murray resolution: -> not a bug stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Nick Coghlan
Nick Coghlan added the comment: The PEP 466 exception was also driven by the desire to solve some of the bootstrapping problems otherwise involved in doing "pip install requests" securely in Python 2. For other HTTP networking issues that can be addressed by "use requests", exceptions to the gen

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: However, one sticking point is whether that optimization may also have adverse effects in terms of security (since we would always be sending auth headers, even when the server doesn't ask for it...). -- nosy: +christian.heimes ___

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> patch review versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we cannot add that optimization in a bugfix release, for the reason you stated: it could break existing systems. It would probably be fine to add the optimization in 3.5, though (and IMO that would be better than adding an alternate handler class). --

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-11 Thread Doug Zongker
New submission from Doug Zongker: Condition.wait() modifies self._waiters without holding the lock (when a wait with timeout times out without the condition being notified). If this happens to occur in between construction of the _islice and _deque objects in Condition.notify(): def notif

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2014-08-11 Thread Milan Oberkirch
Milan Oberkirch added the comment: After blindly raising errors for 'SMTPUTF8' without 'BODY=.*' I found out that 'SMTPUTF8' alone is actually perfectly fine (for using international names in addresses but sending ASCII data). Which means I did a mistake in the smtpd patch :( The attached 3rd

[issue4431] Distutils MSVC doesn't create manifest file

2014-08-11 Thread Mark Lawrence
Mark Lawrence added the comment: There are a lot of messages on this issue considering it was closed as invalid on 25th November 2008 :) -- nosy: +BreamoreBoy ___ Python tracker

[issue4431] Distutils MSVC doesn't create manifest file

2014-08-11 Thread Joachim Herb
Joachim Herb added the comment: Using Visual C++ 10.0 SP1 Express to build extensions for python 3.4 (64bit) I also had to modify distutils/msvc9compiler.py in the described way -- nosy: +jmozmoz versions: +Python 3.4 ___ Python tracker

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Changes by Matej Cepl : -- hgrepos: +268 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue22178] _winreg.QueryInfoKey Last Modified Time Value Incorrect or Explanation Incorrect

2014-08-11 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the report! -- assignee: -> zach.ware components: +Documentation, Windows nosy: +zach.ware versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue22178] _winreg.QueryInfoKey Last Modified Time Value Incorrect or Explanation Incorrect

2014-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97ed0b51bbc0 by Zachary Ware in branch '2.7': Issue #22178: Fix the date of the Windows epoch (Jan 1, 1601). http://hg.python.org/cpython/rev/97ed0b51bbc0 New changeset 847a2bdd5bec by Zachary Ware in branch '3.4': Issue #22178: Fix the date of the

[issue22184] lrucache should reject maxsize as a function

2014-08-11 Thread Jason R. Coombs
New submission from Jason R. Coombs: In https://bitbucket.org/jaraco/backports.functools_lru_cache/issue/1/python-2-attributeerror-int-object-has-no, a user was confused when he tried to use the lrucache decorator incorrectly, passing the wrapped function directly to lrucache. Consider: @

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread R. David Murray
R. David Murray added the comment: That's why I referred to it as an optimization (as does the RFC, according to you). As such, *normally* we wouldn't add it to a maintenance release. The question is, is it acceptable to do so because it addresses, in a backward compatible way, an issue that

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-11 Thread John Beck
John Beck added the comment: Hm, that is strange. My reading of the semantics of vs "foo.h" was that they are almost the same, except that "foo.h" has the additional semantic of searching the local directory (wherever the .c file is that is #include'ing it) first. So if other platforms require

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca696ca204e0 by R David Murray in branch 'default': #21725: Add RFC 6531 (SMTPUTF8) support to smtpd. http://hg.python.org/cpython/rev/ca696ca204e0 -- nosy: +python-dev ___ Python tracker

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Matej Cepl added the comment: > But that introduces a new element of the API, which is an API change. I > thought the plan was to change the existing code to always send the auth when > it was available. Well, it seems to me a little bit suspicious that with changing the current handler, the

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread R. David Murray
R. David Murray added the comment: But that introduces a new element of the API, which is an API change. I thought the plan was to change the existing code to always send the auth when it was available. Why would that change the API? (Maybe it does...I haven't looked into this issue in any

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Matej Cepl added the comment: > This patch looks like a feature addition rather than the discussed > optimization of always sending auth on the first request. As such it could > only go into 3.5. ??? I was trying hard not to break current API, so I have created a new handler to be on the saf

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2014-08-11 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: While working on issue22083, I noticed a few redundant comments. This patch removes them. -- keywords: +patch Added file: http://bugs.python.org/file36349/remove-pyshell-comment.diff ___ Python tracker

[issue22083] Refactor PyShell's breakpoint related methods

2014-08-11 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: This patch does two things 1. Refactor pyshell-breakpoint-refactor.diff to reflect changes in pyshell-breakpoint-refactor.diff As in pyshell-breakpoint-refactor.diff, the set/clear(_here) breakpoint methods are refactored into logical methods. 2. If the

[issue5411] Add xz support to shutil

2014-08-11 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks for the patch, Akira. http://hg.python.org/cpython/rev/7fcfb634ccca -- nosy: +berker.peksag ___ Python tracker ___

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread R. David Murray
R. David Murray added the comment: This patch looks like a feature addition rather than the discussed optimization of always sending auth on the first request. As such it could only go into 3.5. I'm also adding Nick Coghlan to nosy, for his opinion on whether or not this optimization/bug-fix-

[issue22118] urljoin fails with messy relative URLs

2014-08-11 Thread Demian Brecht
Demian Brecht added the comment: Thanks Mike, it's always nice to get positive feedback :) -- ___ Python tracker ___ ___ Python-bugs-l

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As David explained, utcoffset() method signature is dictated by the base class. This is not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread R. David Murray
R. David Murray added the comment: A timezone is a particular implementation of the general tzinfo API, and in the general case the datetime argument *is* required. This is already documented (ie: that timezone is a concrete implementation of tzinfo, and that the tzinfo API requires the datet

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread Patrick Westerhoff
New submission from Patrick Westerhoff: I’ve noticed that the methods in `datetime.timezone` all require a datetime object (or explicitely `None`) as its parameter or they will raise an exception. The datetime object however is never required for the implementation of the method, so it seems t

[issue22118] urljoin fails with messy relative URLs

2014-08-11 Thread Mike Lissner
Mike Lissner added the comment: Just hopping in here to say that the work going down here is beautiful. I've filed a lot of bugs. This one's not particularly difficult, but damn, I appreciate the speed and quality going into fixing it. Glad to see the Python language is a happy place with fas

[issue22118] urljoin fails with messy relative URLs

2014-08-11 Thread Demian Brecht
Demian Brecht added the comment: Uploaded new patch. Removed support for RFC1808-specific behaviour. Extracted non-compliant tests into comment blocks indicating the behaviour is no longer supported. -- Added file: http://bugs.python.org/file36347/issue22118_2.patch __

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-11 Thread Claudiu Popa
Claudiu Popa added the comment: Mm, it seems there's another instance of unpacking later on, when os.unlink fails. Here's the updated patch. -- Added file: http://bugs.python.org/file36346/issue22182.patch ___ Python tracker

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-11 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. When os.rename fails inside distutils.file_util.move_file, the exception is unpacked using ``(num, msg) = e``. While this was valid in Python 2, in Python 3 it should be ``e.args``. The attached patched fixes this. -- components: Distutils files: d

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Matej Cepl added the comment: Mercurial seems to be incredibly slow to clone, for anybody who is willing to deal with git, my real repo is http://luther.ceplovi.cz/git/cpython.git/ (branches basicAuth19494 and basicAuth19494_py3k). -- ___ Python tra

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Changes by Matej Cepl : Added file: http://bugs.python.org/file36344/fix-issue19494-py27.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Changes by Matej Cepl : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Matej Cepl added the comment: This is a patch with tests working for the tip of cpython. -- hgrepos: +267 Added file: http://bugs.python.org/file36343/fix-issue19494-py35.patch ___ Python tracker __

[issue5411] Add xz support to shutil

2014-08-11 Thread Akira Li
Akira Li added the comment: sphinx generates warning for the current docs introduced by this issue: WARNING: Explicit markup ends without a blank line; unexpected unindent. I've uploaded a documentation patch that fixes it. -- nosy: +akira Added file: http://bugs.python.org/file36342

[issue19055] Clarify docs for re module: why * does not match as many repetitions as possible.

2014-08-11 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: Added file: http://bugs.python.org/file36341/re-docs-repetitions.patch ___ Python tracker ___ ___ Py

[issue19055] Clarify docs for re module: why * does not match as many repetitions as possible.

2014-08-11 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: Removed file: http://bugs.python.org/file36340/re-docs-repetitions.patch ___ Python tracker ___ ___

[issue19055] Clarify docs for re module: why * does not match as many repetitions as possible.

2014-08-11 Thread Akira Li
Akira Li added the comment: tl;dr: added patch that clarifies Python re behavior. Please, review. --- The documented behavior is not clear: why (a|ab)* is not equivalent to (a|ab)(a|ab) for aba if the docs say "as many repetitions as are possible"? And it is not obvious (it is not the only pos

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-08-11 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-11 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-11 Thread Matej Cepl
Matej Cepl added the comment: Well, I hoped to get first some comments on the code itself (and especially the test). -- ___ Python tracker ___ __