[issue25962] Ctrl+C Can't Exit Script with Pool on Windows

2015-12-27 Thread Meng-Yuan Huang
New submission from Meng-Yuan Huang: My OS is Windows 10 Pro 64-bit. My Python version is 3.5.1 64-bit. I wrote a simple script (t.py, see the attached file) with multiprocessing.Pool and run it by: python t.py in Windows Command Prompt. I tried to interrupt the running script by pressing Ctrl+C

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2015-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think it still applies. os.waitpid even in blocking mode could hang at the whim of the OS. you aren't guaranteed that your child process has died and the OS is ready to return a status code. -- ___ Python trac

[issue25447] TypeError invoking deepcopy on lru_cache

2015-12-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've confirmed this change corrects the failing test and expectation in the downstream project. The tests look good to me as far as covering this more nuanced expectation. Well done, and huge thanks. -- ___ Python

[issue25447] TypeError invoking deepcopy on lru_cache

2015-12-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Wow. That's great. I'll take a look soon... and verify it works with the downstream lib. -- ___ Python tracker ___ ___

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-12-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-27 Thread Zachary Ware
Zachary Ware added the comment: ctypes in the test suite is fine, just be sure it's guarded properly (with either `ctypes = test.support.import_module("ctypes")` or `if sys.platform == 'win32'): ...`. -- ___ Python tracker

[issue25768] compileall functions do not document or test return values

2015-12-27 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Nicholas! I have added you to Misc/ACKS. I did tweak the patch, though, to have the functions return booleans instead of 1 or 0 and thus tweaked the docs to be less specific about the return type as well as the tests only doing assertTrue a

[issue25768] compileall functions do not document or test return values

2015-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71f071f2e074 by Brett Cannon in branch 'default': Issue #25768: Make compileall functions return booleans and document https://hg.python.org/cpython/rev/71f071f2e074 -- nosy: +python-dev ___ Python tracke

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with "Cannot allocate memory"

2015-12-27 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25917] Fixing howto links in docs

2015-12-27 Thread Camilla Montonen
Camilla Montonen added the comment: Applied the patch to default branch and built the docs. The updated links work and I can't see any major problems in the immediate vicinity of the changes. This is a bit offtopic and unrelated to SilentGhost's change, but I noticed that some of the docpage

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-27 Thread Steve Dower
Steve Dower added the comment: Can we use ctypes in the test suite? That would probably be simpler here, as the C code is straightforward. (Question is for the other core devs, not Chi, as I know we're not supposed to use ctypes in the stdlib.) -- _

[issue25928] Add Decimal.as_integer_ratio()

2015-12-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Now that there is more than one use case for Decimal.as_integer_ratio(), I'll add my support to this feature request. -- ___ Python tracker

[issue12484] The Py_InitModule functions no longer exist, but remain in the docs

2015-12-27 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Alejandro, for the report and Anish for the patch (who I added to Misc/ACKS)! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12484] The Py_InitModule functions no longer exist, but remain in the docs

2015-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 003f1f60a09c by Brett Cannon in branch '3.5': Issue #12484: Remove a mention of Py_InitModule() and _PyImport_FixupExtension(). https://hg.python.org/cpython/rev/003f1f60a09c New changeset f4aee46c79ca by Brett Cannon in branch 'default': Merge for

[issue25928] Add Decimal.as_integer_ratio()

2015-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Arguments against as_integer_ratio() look weighty. But may be there are less arguments against numerator and denominator? -- ___ Python tracker _

[issue25874] Add notice that XP is not supported on Python 3.5+

2015-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5114871a3ac6 by Brett Cannon in branch '3.5': Issue #25874: Clarify platform support in the "Using Python on Windows" doc. https://hg.python.org/cpython/rev/5114871a3ac6 New changeset c6bd004671a7 by Brett Cannon in branch 'default': Merge for issue

[issue25874] Add notice that XP is not supported on Python 3.5+

2015-12-27 Thread Brett Cannon
Brett Cannon added the comment: The "Using Python on Windows" doc has been updated. Thanks, Chris (who got added to ACKS)! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not -> Popen.wait() hangs when called from a signal handler when os.waitpid() does not ___ Python tracker

[issue25928] Add Decimal.as_integer_ratio()

2015-12-27 Thread Stefan Krah
Stefan Krah added the comment: Keeping the API small is a good reason against it. There aren't many ways to destructure a Decimal though: As far as I know, the return value of as_tuple() dates back from the time when the coefficient was actually a tuple. The function is slow and not really nic

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not

2015-12-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for looking into this so quickly. > os.waitpid(p.pid, 1) is os.waitpid(p.pid, os.WNOHANG) which is a non-blocking > operation so it works. For the record, it also works with "os.waitpid(p.pid, 0)." I should have written 0 the first time. Does your po

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not

2015-12-27 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> wont fix status: open -> closed title: Popen.wait() hangs with SIGINT when os.waitpid() does not -> Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not ___ P

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: fundamentally: this shouldn't work anyways. You are calling wait() from a signal handler. That is a blocking operation. You cannot do that from a signal handler. os.waitpid(p.pid, 1) is os.waitpid(p.pid, os.WNOHANG) which is a non-blocking operation so it wo

[issue25928] Add Decimal.as_integer_ratio()

2015-12-27 Thread Mark Dickinson
Mark Dickinson added the comment: > Mark, was there perhaps a reason not to add the method? In the past, there's been a desire to keep the decimal module minimal in scope, implementing little more than what's required for the specification. A number of proposed additions have been rejected on

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: This appears due to Popen._waitpid_lock. It is not being released when the signal fires and the while loop containing the with self._waitpid_lock repeats. This also reproduces when using subprocess32. -- ___ Pyth

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25930] Document that os.remove is semantically identical to os.unlink

2015-12-27 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25447] TypeError invoking deepcopy on lru_cache

2015-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The Python implementation survives a deepcopy because the Python implementation has a function type, and functions functions are copied as atoms. Proposed patch just implements __copy__ and __deepcopy__ methods that returns the object itself for the lru_cach

[issue25961] Disallow the null character in type name

2015-12-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file41434/type_name_null.patch ___ Python tracker ___

[issue25908] ProcessPoolExecutor deadlock on KeyboardInterrupt

2015-12-27 Thread Davin Potts
Davin Potts added the comment: Noting the connection to issue22393. -- dependencies: +multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly ___ Python tracker __

[issue25447] TypeError invoking deepcopy on lru_cache

2015-12-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've since moved the jaraco.functools project to Github, so here are updated links for those found in the original post to the [downstream bug](https://github.com/jaraco/jaraco.functools/issues/1) and the [offended code](https://github.com/jaraco/jaraco.funct

[issue21345] multiprocessing.Pool._handle_workers sleeps too long

2015-12-27 Thread Davin Potts
Davin Potts added the comment: Despite attempts to reproduce the reported behavior, we don't have anything usable to chase down. It's been 20 months without a response from the OP. There's not much more we can do. -- resolution: -> works for me stage: -> resolved status: pending ->

[issue24153] threading/multiprocessing tests fail on chromebook under crouton generated chroots

2015-12-27 Thread Davin Potts
Davin Potts added the comment: Ned's comments summarize this nicely. It's been 7 months without a response from the OP and given the nature of the OP's environment (use of crouton on a chromebook) it strongly supports the theory that the OP simply had insufficient resources to run the full te

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-12-27 Thread Davin Potts
Davin Potts added the comment: Given that the issue can not be reproduced except on an older version (3.3) that is no longer being actively maintained, the proper thing to do is mark this as "out of date". If the problem recurs with 3.5 (once cx_Freeze can be tried there) then a new bug shoul

[issue12174] Multiprocessing logging levels unclear

2015-12-27 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue25908] ProcessPoolExecutor deadlock on KeyboardInterrupt

2015-12-27 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2015-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opened Tk ticket: http://core.tcl.tk/tk/info/607ffb053c783490 . -- ___ Python tracker ___ ___ Pyth

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2015-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Arguments for PhotoImage.zoom() are zoom factors, not the dimension of the result. In you case you are trying to create an image with size 54000x29964 pixels. This is over 1.6 gigapixels. Here is pure Tcl equivalent of Python example. It should reproduce the

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Added tests for ssl.enum_certificates() and ssl.enum_crls() within low integrity processes. -- Added file: http://bugs.python.org/file41432/test-ssl-with-lower-integrity-level.patch ___ Python tracker

[issue25959] tkinter - PhotoImage.zoom() causes segfault

2015-12-27 Thread hcdb
hcdb added the comment: yes I can provide my image the original image was a .png but I converted it to .gif using GIMP alternative download here: image: http://tsfl.nl/mapbg.gif script: http://tsfl.nl/test.py -- Added file: http://bugs.python.org/file41431/mapbg.gif _

[issue25961] Disallow the null character in type name

2015-12-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The null character is allowed in __name__ setter (but error message is a little confusing). >>> class A: pass ... >>> A.__name__ = 'B\0' Traceback (most recent call last): File "", line 1, in ValueError: __name__ must not contain null bytes But is allo

[issue20440] Use the Py_SETREF macro

2015-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4bfbb2714ae9 by Serhiy Storchaka in branch '3.5': Issue #20440: More use of Py_SETREF. https://hg.python.org/cpython/rev/4bfbb2714ae9 New changeset 11670e4be1a9 by Serhiy Storchaka in branch '2.7': Issue #20440: More use of Py_SETREF. https://hg.pyt

[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.

2015-12-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 27.12.2015 02:05, Serhiy Storchaka wrote: > >> I wonder why this does not trigger the exception. > > Because in case of utf-8 and iso-8859-1 decoding and encoding steps are > omitted. > > In general case the input is decoded from specified encoding and

[issue25928] Add Decimal.as_integer_ratio()

2015-12-27 Thread Stefan Krah
Stefan Krah added the comment: Previously the method was rejected in #8947. But the speedup is quite dramatic. This is a benchmark for converting "1.91918261298362195e-100", 100 repetitions: float.as_integer_ratio: 0.548023 Decimal.as_integer_ratio: normalize=False: 2.661191 Decimal.as_int

[issue20440] Use the Py_SETREF macro

2015-12-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file41430/py_setref_extra2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: More information: No hang: 2.7.11, 3.3.6, 3.4.0 Hang: 3.4.1 3.4.3, 3.5.0, 3.5.1 Is this a regression or a bug fix? Maybe issue #21291 is related which was fixed in 3.4.1. Also, this is on Mac OS X 10.11 for me. -- nosy: +gregory.p.smith __

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
New submission from Chris Jerdonek: I came across a situation where Popen.wait() hangs and os.waitpid() doesn't hang. It seems like a bug, but I don't know for sure. This is with Python 3.5.1. To reproduce, save the following to demo.py: import os, signal, subprocess class State:

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-12-27 Thread Joakim Karlsson
Joakim Karlsson added the comment: After running a windows update I finally have a working Python 3.5.1 installation. Updates weren't done automatically on this box, so I was a bit behind. I wish I knew which update fixed this, and I'm sorry to add to any confusion regarding this issue.

[issue20440] Use the Py_SETREF macro

2015-12-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9fb57c0209ea by Serhiy Storchaka in branch '3.5': Issue #20440: Applied yet one patch for using Py_SETREF. https://hg.python.org/cpython/rev/9fb57c0209ea New changeset bc7c56a225de by Serhiy Storchaka in branch 'default': Issue #20440: Applied yet o

[issue25954] Python 3.5.1 installer fails on Windows 7

2015-12-27 Thread Ned Batchelder
Ned Batchelder added the comment: I'm attaching another bunch of logs. There seem to be two installations here, one of which succeeded. -- Added file: http://bugs.python.org/file41429/Python 3.5.1 more logs.zip ___ Python tracker