[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: -3277 ___ Python tracker ___ ___

[issue30096] Update examples in abc documentation to use abc.ABC

2017-08-30 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch! Raymond approved it and I merged it after a minor change. Now let me read the doc again about backports :) -- stage: needs patch -> backport needed versions: +Python 3.6 ___ Python tracker

[issue30096] Update examples in abc documentation to use abc.ABC

2017-08-30 Thread Éric Araujo
Éric Araujo added the comment: New changeset 122e88a8354e3f75aeaf6211232dac88ac296d54 by Éric Araujo (Eric Appelt) in branch 'master': bpo-30096: Use ABC in abc reference examples (#1220) https://github.com/python/cpython/commit/122e88a8354e3f75aeaf6211232dac88ac296d54 -- nosy:

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-08-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've started working on the missing tests for HighPage and KeysPage and also test for the functions and buttons in ConfigDialog. That led to PR3238 because the 'help' button wasn't working. Anyway, I found the following on

[issue26175] Fully implement IOBase abstract on SpooledTemporaryFile

2017-08-30 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3295 ___ Python tracker ___

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2017-08-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___

[issue31311] SystemError raised by PyCData_setstate() in case __dict__ is not a dict

2017-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And the following example results in segmentation fault. import ctypes class BadStruct(ctypes.Structure): @property def __dict__(self): raise AttributeError BadStruct().__setstate__({}, b'') As for change the format given to

[issue31311] SystemError raised by PyCData_setstate() in case __dict__ is not a dict

2017-08-30 Thread Oren Milman
Oren Milman added the comment: typo - change the format to "O!s#" -- ___ Python tracker ___ ___

[issue31311] SystemError raised by PyCData_setstate() in case __dict__ is not a dict

2017-08-30 Thread Oren Milman
New submission from Oren Milman: The following code causes PyCData_setstate() (in Modules/_ctypes/_ctypes.c) to raise a SystemError: import ctypes class BadStruct(ctypes.Structure): def __dict__(self): pass BadStruct().__setstate__({}, b'foo') this is because PyCData_setstate()

[issue31310] semaphore tracker isn't protected against crashes

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31308] forkserver process isn't re-launched if it died

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2017-08-30 Thread flying sheep
Changes by flying sheep : -- pull_requests: +3293 ___ Python tracker ___ ___

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-08-30 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue to backport the bugfix to 3.6. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue31309] Tkinter root window does not close if used with matplotlib.pyplot

2017-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is purely a tkinter issue. Windows people can ignore this. Your problem was a result of your program error, of not keeping a reference to Tk(), combined with tkinter's _default_root 'feature'. The solution you report in your answer, 'root =

[issue30737] Update devguide link to the new URL

2017-08-30 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: patch review -> backport needed ___ Python tracker ___

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2017-08-30 Thread flying sheep
flying sheep added the comment: I should have linked the file: distutils/command/check.py -- ___ Python tracker ___

[issue30737] Update devguide link to the new URL

2017-08-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 384899dfaeb83db38a6d3846d3cbc2f58a6605cd by Mariatta (Lisa Hewus Fresh) in branch 'master': bpo-30737: Update DevGuide links to new URL (GH-3228) https://github.com/python/cpython/commit/384899dfaeb83db38a6d3846d3cbc2f58a6605cd --

[issue31310] semaphore tracker isn't protected against crashes

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +3292 ___ Python tracker ___ ___

[issue31310] semaphore tracker isn't protected against crashes

2017-08-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: Similar to bpo-31308, but pertaining to multiprocessing's semaphore tracker process. -- components: Library (Lib) messages: 301029 nosy: davin, pitrou priority: normal severity: normal stage: needs patch status: open title: semaphore tracker isn't

[issue31309] Tkinter root window does not close if used with matplotlib.pyplot

2017-08-30 Thread Philipp
New submission from Philipp: Today I ran into a problem when using both tkinter and matplotlib.pyplot at the same time. I thought it would be best to let you know, in case it is an issue. The problem is/was that the root window did not close itself, when just using `askopenfilename()`. A

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-08-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___

[issue31308] forkserver process isn't re-launched if it died

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +3291 ___ Python tracker ___ ___

[issue31308] forkserver process isn't re-launched if it died

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list

[issue31308] forkserver process isn't re-launched if it died

2017-08-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: It may happen that the forkserver process dies (for example if SIGINT is received because the user pressed Ctrl-C) while the parent process is still alive. In that case, if the parent tries to create a new Process instance, an exception is received. The

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-08-30 Thread Vincent Michel
New submission from Vincent Michel: Calling `config_parser.read` with `'test'` is equivalent to: config_parser.read(['test']) while calling `config_parser.read` with `b'test'` is treated as: config_parser.read([116, 101, 115, 116]) which means python will try to open the file

[issue31113] Stack overflow with large program

2017-08-30 Thread Ned Deily
Ned Deily added the comment: I agree with Antoine's comment on the PR: this seems like this should only go into 3.7. From the description here, it sounds like this is an edge-case problem that hasn't come up before as an issue. Let's do the right thing in master (for 3.7) and try to come up

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -3290 ___ Python tracker ___

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, we're using GitHub PRs now for development, though you can still submit patch files if you prefer that. -- nosy: +pitrou ___ Python tracker

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3290 ___ Python tracker ___ ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -3288 ___ Python tracker ___

[issue24340] co_stacksize estimate can be highly off

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -3289 ___ Python tracker ___

[issue31113] Stack overflow with large program

2017-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ned, Benjamin, what do you think about backporting this change to 3.6 and 2.7? On one hand, the change is not trivial and looks like a new feature. On other hand, this can be considered as a platform specific bug, the compiler works with a large generated

[issue24340] co_stacksize estimate can be highly off

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3289 ___ Python tracker ___ ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3288 ___ Python tracker ___ ___

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2017-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___

[issue31108] add __contains__ for list_iterator (and others) for better performance

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think I've ever used `in` on an iterator. I didn't even expect it to work, and would not consider its use a good practice. -- nosy: +pitrou ___ Python tracker

[issue31291] zipimport.zipimporter.get_data() crashes when path.replace() returns a non-str

2017-08-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31291] zipimport.zipimporter.get_data() crashes when path.replace() returns a non-str

2017-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 095a421b1606ee27e00a5d9d253b05a9f0cfadb8 by Serhiy Storchaka (Oren Milman) in branch '3.6': [3.6] bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() (GH-3226) (#3243)

[issue31291] zipimport.zipimporter.get_data() crashes when path.replace() returns a non-str

2017-08-30 Thread Oren Milman
Changes by Oren Milman : -- pull_requests: +3287 ___ Python tracker ___ ___

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2017-08-30 Thread Antti Haapala
Antti Haapala added the comment: To Charles first: "Gives back a sizeof of 8 on Windows and 10 on Linux. The inconsistency makes it difficult to have code work cross-platform." The bitfields in particular and ctypes in general have *never* been meant to be cross-platform - instead they just

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 2d1653aa43cf02e6b74f9d4f178fac9969a293e2 by Antoine Pitrou (Pauli Virtanen) in branch '3.6': [3.6] bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (GH-31) (#3241)

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. Someone might backport this to 3.6 if they want. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c67bae04780f9d7590f9f91b4ee5f31c5d75b3c3 by Antoine Pitrou (Christopher Wilcox) in branch 'master': bpo-30581: Windows: os.cpu_count() returns wrong number of processors (#2934)

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-08-30 Thread Pauli Virtanen
Changes by Pauli Virtanen : -- pull_requests: +3286 ___ Python tracker ___ ___ Python-bugs-list

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: At this point, 2.7 and 3.6 do. -- ___ Python tracker ___ ___

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-08-30 Thread Pauli Virtanen
Pauli Virtanen added the comment: Created backport PR for 3.6: https://github.com/python/cpython/pull/3241 Which versions take backports? -- ___ Python tracker

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

2017-08-30 Thread Pauli Virtanen
Changes by Pauli Virtanen : -- pull_requests: +3284 ___ Python tracker ___ ___ Python-bugs-list

[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 87c50245b1ba21469cc2e4e84cd5e5cd54ff954d by Terry Jan Reedy in branch '3.6': [3.6] bpo-31051: Rearrange IDLE condigdialog GenPage into Window, Editor, and Help sections. (GH-3239) (#3240)