[issue24519] multiprocessing.Pool with maxtasksperchild starts too many processes

2015-06-27 Thread Zahari Dim
New submission from Zahari Dim: The following example should start two processes, but instead it starts three, even though only two do_work(). A third process is incorrectly started after the first one finishes. import os import time from multiprocessing import Pool def initprocess():

[issue24519] multiprocessing.Pool with maxtasksperchild starts too many processes

2015-06-27 Thread Zahari Dim
Changes by Zahari Dim zaha...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24519 ___ ___ Python-bugs-list

[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24336 ___ ___ Python-bugs-list

[issue24120] pathlib.(r)glob stops on PermissionDenied exception

2015-06-27 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24120 ___

[issue24120] pathlib.(r)glob stops on PermissionDenied exception

2015-06-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Ulrich for the patch. I basically agree with the solution you proposed (I'm not a fan of the non-ASCII ASCII art, by the way, but I won't block the patch on that :-)). Have you tested the patch and tests under Windows? Otherwise, I (or someone

[issue24505] shutil.which wrong result on Windows

2015-06-27 Thread Bob Alexander
Bob Alexander added the comment: Hi R. David -- My report is just to notify y'all of a bug that I noticed. The bug is causing me no problem, and it's your option as to whether to fix it or not. I offered a fix, but I haven't the time to perform diffs, etc. You could make that diff yourself,

[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-27 Thread Yury Selivanov
Yury Selivanov added the comment: lgtm.. Serhiy, I think you should just commit it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24336 ___ ___

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-06-27 Thread Andrew Turner
New submission from Andrew Turner: The attached patch moves to use the fenv functions on FreeBSD to control the floating-point environment. This will be needed as I don't expect FreeBSD will have these functions on arm64. I would expect a similar change should be applied to any supported

[issue24508] Backport 3.5's Windows build project files to 2.7

2015-06-27 Thread Steve Dower
Steve Dower added the comment: 32-bit build was fine (VS 2013 + SDK 7.1 + VS 2008), but something has gone funny with the 64-bit. Need to go AFK for a bit now, but I'll try and figure that out later today. -- ___ Python tracker

[issue24518] json.dumps should accept key function for ``sort_keys``

2015-06-27 Thread Catherine Devlin
Catherine Devlin added the comment: Implementation for the enhancement. Includes tests. -- keywords: +patch Added file: http://bugs.python.org/file39823/json_callable_sort_24518.patch ___ Python tracker rep...@bugs.python.org

[issue24508] Backport 3.5's Windows build project files to 2.7

2015-06-27 Thread Steve Dower
Steve Dower added the comment: Looks like the required install configuration is: * VS 2008 + VS 2010, or * VS 2008 + VS 2013 or later + Windows SDK 7.1 The SDK is at http://www.microsoft.com/en-us/download/details.aspx?id=8279 and contains MSVC10 and platform toolset files for both VC9 and

[issue1182143] making builtin exceptions more informative

2015-06-27 Thread George Jenkins
George Jenkins added the comment: Thanks for the response. In terms of python API changes - I exposed the 'name' attribute on UnboundLocalError and NameError exceptions. (This can be seen ( is verified) by the changes to test_exceptions.py exceptions test cases in the patch) In terms of

[issue24505] shutil.which wrong result on Windows

2015-06-27 Thread R. David Murray
R. David Murray added the comment: That's fine. Perhaps someone will be interested enough to pick this up and work on it. -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24505

[issue24521] Integer overflow in _pickle.c

2015-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson: Reported by Kurucsai Istvan on the security list: I. Summary There is an integer overflow in the _Unpickler_ResizeMemoList function in _pickle.c. It is reachable e.g. via the LONG_BINPUT opcode. II. Source code The functions in question: static int

[issue24521] Integer overflow in _pickle.c

2015-06-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: https://hg.python.org/cpython/rev/acd5c9118931 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24521 ___

[issue24481] hotshot pack_string Heap Buffer Overflow

2015-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f48b1e982ca by Benjamin Peterson in branch '2.7': ensure internal buffer is large enough for string after flushing (closes #24481) https://hg.python.org/cpython/rev/4f48b1e982ca -- nosy: +python-dev resolution: - fixed stage: needs patch

[issue24522] Integer overflow in _json_encode_unicode leads to crash (heap-buffer-overflow)

2015-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson: Reported by Brendon Tiszka on the security list: # static PyObject * # escape_unicode(PyObject *pystr) # { # /* Take a PyUnicode pystr and return a new escaped PyUnicode */ # Py_ssize_t i; # Py_ssize_t input_chars; # Py_ssize_t output_size;

[issue24522] Integer overflow in _json_encode_unicode leads to crash (heap-buffer-overflow)

2015-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0540e14c4b64 by Benjamin Peterson in branch '3.5': prevent integer overflow in escape_unicode (closes #24522) https://hg.python.org/cpython/rev/0540e14c4b64 New changeset fc799b2edf21 by Benjamin Peterson in branch 'default': merge 3.5 (#24522)

[issue24512] multiprocessing should log a warning when forking multithreaded process

2015-06-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +davin, sbt versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24512 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-27 Thread Cyd Haselton
Cyd Haselton added the comment: I've run into an error when building python in preparation for running tests (i. e. with --with-pydebug in the ./configure params). ./libpython3.4dm.so: undefined reference to `_PyUnicode_CheckConsistency' It doesn't seem to be defined anywhere in source that I

[issue24508] Backport 3.5's Windows build project files to 2.7

2015-06-27 Thread Steve Dower
Steve Dower added the comment: 64-bit build didn't work (couldn't find ws2_32.lib) until I ran the SDK Configuration utility and selected v6.0A as the default SDK. This may be because I forgot to explicitly select the 64-bit compilers when I initially installed VS 2008, but it's a worthwhile

[issue17960] Clarify the required behaviour of locals()

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17960 ___ ___ Python-bugs-list

[issue17311] use distutils terminology in PyPI package display section

2015-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry for the long silence on this one folks. I agree the use of package and home page in the referenced section is confusing. For home page, I'd suggest using the phrase distribution page instead (unless Donald has a different suggestion based on his current

[issue22166] test_codecs leaks references

2015-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: Victor, would you be willing to take over pushing this one forward? I believe you have a much better idea of what's still needed than I do. -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2015-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, when I haven't moved an issue forward in over two years, I guess that's a fair sign I'm not *actually* working on it... -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19518 ___ ___ Python-bugs-list

[issue16961] No regression tests for -E and individual environment vars

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16961 ___ ___ Python-bugs-list

[issue22352] Ensure opcode names and args fit in disassembly output

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22352 ___ ___ Python-bugs-list

[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: My apologies Serhiy, I forgot this was directly assigned to me - all yours now! -- assignee: ncoghlan - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24336

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23188 ___ ___ Python-bugs-list

[issue20357] Mention buildbots in the core dev section of the devguide

2015-06-27 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20357 ___ ___ Python-bugs-list