[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2017-06-28 Thread Jiri Hnidek
Jiri Hnidek added the comment: Hi, good point about *foo.com. It seems this is not valid DNS RR according following RFC: https://tools.ietf.org/html/rfc4592 Especially this section is more focused on allowed combinations of asterisks and other characters: https://tools.ietf.org/html/rfc4592#

[issue19325] _osx_support imports many modules

2017-06-28 Thread INADA Naoki
INADA Naoki added the comment: FYI, issue29585 removes _osx_support dependency from site.py -- nosy: +inada.naoki ___ Python tracker ___ _

[issue13617] Reject embedded null characters in wchar* strings

2017-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 54ba940abc2fabb94fede46dfad80f8ac15632a3 by Serhiy Storchaka in branch '3.5': [3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) (#2463) https://github.com/python/cpython/commit/54ba940abc2fabb94fede46dfad80f8ac15632a

[issue13617] Reject embedded null characters in wchar* strings

2017-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Backporting this to 2.7 requires too much work taking to account that PyArg_Parse and other argument parsing functions don't check for null characters in 2.7. The most serious security issue is fixed in issue30730, other cases unlikely can be used for attack

[issue29926] time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2520 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29926] time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Louie Lu
Louie Lu added the comment: Based on Martin's patch, I slightly changed the logic for the patch. So, I add a `finish` flag to detect the code in Executive.runcode is done or not. `interrupt_the_server` will first SIGINT via interrupt_main, if this doesn't work after 0.2 seconds, it will then s

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Louie Lu
Changes by Louie Lu : -- assignee: -> terry.reedy components: +IDLE -Library (Lib) title: time.sleep ignores _thread.interrupt_main() -> IDLE: in shell, time.sleep ignores _thread.interrupt_main() ___ Python tracker

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2521 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset a79f8faccf5e26f55e8b9496ad49d2071b5e299c by Victor Stinner (Antoine Pitrou) in branch 'master': bpo-30775: Fix refleaks in test_multiprocessing (#2467) https://github.com/python/cpython/commit/a79f8faccf5e26f55e8b9496ad49d2071b5e299c --

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- components: Library (Lib) nosy: Cordius priority: normal severity: normal status: open title: Can't use proxy to connect internet on windows type: behavior versions: Python 3.6 ___ Python tracker

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- title: Injecting environment variable in subprocess on Windows -> [security] Injecting environment variable in subprocess on Windows ___ Python tracker __

[issue13617] Reject embedded null characters in wchar* strings

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Thank you very much Serhiy of taking care of this bug! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Hey, thank you Antoine for fixing the last known reference leak! -- ___ Python tracker ___ ___ Pytho

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2522 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2524 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2523 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> commit review status: open -> pending ___ Python tracker ___ ___ Pytho

[issue30429] bdb and pdb: Add watchpoint function

2017-06-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: See the related issue 5654. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset e022aad73a4151b5628e2476a8465ce6c0d18b8c by Antoine Pitrou in branch '3.6': [3.6] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2468) https://github.com/python/cpython/commit/e022aad73a4151b5628e2476a8465ce6c0d18b8c -- stat

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset f15bf1f3f3104f6ab2229e4b359984489a74685b by Victor Stinner (Antoine Pitrou) in branch '3.5': [3.5] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2469) https://github.com/python/cpython/commit/f15bf1f3f3104f6ab2229e4b359984489a74685b

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2525 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6 by Victor Stinner (Antoine Pitrou) in branch 'master': Clear potential ref cycle between Process and Process target (#2470) https://github.com/python/cpython/commit/79d37ae979a65ada0b2ac820279ccc3b1cd41ba6

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2526 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2527 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2528 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 38d6a40898940d2c62c637fcc8acce05e75de5c2 by Antoine Pitrou in branch '3.6': [3.6] Clear potential ref cycle between Process and Process target (GH-2470) (#2471) https://github.com/python/cpython/commit/38d6a40898940d2c62c637fcc8acce05e75de5c2 -

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset a9705b777859f555d50eb5dcd5fc4260c42a0188 by Antoine Pitrou in branch '3.5': [3.5] Clear potential ref cycle between Process and Process target (GH-2470) (#2472) https://github.com/python/cpython/commit/a9705b777859f555d50eb5dcd5fc4260c42a0188 -

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replace 'Relevant History' with the following; Python and IDLE development policies: * Dependence on tcl/tk: Except when security is involved, Python is slow to require upgrade of 3rd party dependencies. IDLE is mostly bound by this. In July 2010, core deve

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 12536bd261ba95cd2748f3d7d47768742a6ffa7a by Victor Stinner (Antoine Pitrou) in branch '2.7': [2.7] Clear potential ref cycle between Process and Process target (GH-2470) (#2473) https://github.com/python/cpython/commit/12536bd261ba95cd2748f3d7d47

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't "Type: security" enough? If you want you could patch Roundup for highlighting security issues. -- ___ Python tracker ___ __

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Jeroen Demeyer
Changes by Jeroen Demeyer : -- nosy: +jdemeyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On windows, s=input() is cleanly interrupted by ^-C, leaving s unbound, before and after the patch. time.sleep(1) is not interrupted, before and after the patch. Ditto for the socket test. Louie, what test are you using on *nix? It still appears that for Wi

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Nice analysis. I always assumed that `with` was safe from such race conditions, but it isn't. -- ___ Python tracker ___ ___

[issue12939] Add new io.FileIO using the native Windows API

2017-06-28 Thread R. David Murray
R. David Murray added the comment: If it's a good idea, why close the issue? Maybe post it to core-mentorship instead? It's not an easy issue, but it also has the beginnings of a patch. So if there is anyone on core-mentorship with some windows knowledge (and I'm guessing their are), maybe

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: One testing possibility worth considering: perhaps it would be make sense to have "start_try" and "start_finally" trace events, such that a trace function could be installed that injected signals at the worst possible time in the opcode evaluation? I haven't fu

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, I misread Nathaniel's suggestion - the exhaustive search of all possible offsets already avoids the need to hardcode any code generation dependent details in the tests. So the trace function approach would just avoid the need for that search. --

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, thank for posting the list of all the IDLE issues. This is extremely helpful to me and I appreciate your effort in organizing it. I'm also on board for working together on targetted areas. Without that, I was focusing on PEP8, docstrings, linting, ttk

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Or we could steal a bit in the opcode encoding or something. That seems like a very reasonable and easy-to-implement solution. It would generalize this check: https://github.com/python/cpython/blob/e82cf8675bacd7a03de508ed11865fc2701dcef5/Python/ceval.c#L106

[issue12939] Add new io.FileIO using the native Windows API

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: R. David Murray: "If it's a good idea, why close the issue?" Yesterday I tried to cleanup the list of issues that I opened. I reduced my list from 140 to around 100 issues. I'm happier :-) I don't like having a too long "TODO list". Sometimes, closing an issu

[issue29411] Option --executable for entry_points

2017-06-28 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Erik Bray
Erik Bray added the comment: >> Or we could steal a bit in the opcode encoding or something. > That seems like a very reasonable and easy-to-implement solution. It > would > generalize this check: > https://github.com/python/cpython/blob/e82cf8675bacd7a03de508ed11865fc2701dcef5/Python/ceval.c

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread 18z
18z added the comment: Hi Terry, Louie and Cheryl I would like to work with you guys. :) However, I still need some time to study the codes. Now I am focusing on reading unit tests. By reading the tests, I can know how the code works and further to write tests that are necessary but yet to wr

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2017-06-28 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > It seems like that does at least try to guarantee that a signal can't > interrupt between: > > lock.acquire() > try: > ... Actually, I think it's between the end of the `try` and the beginning of the `finally` (which is precisely the same place that *br

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30790] Can't use proxy to connect internet on windows

2017-06-28 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2529 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Most of the patches lack tests, and writing them is a bottle neck. Reading the current one, in conjunction with the code and the unittest doc, is a good way to learn. -- ___ Python tracker

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Oh, only os.stat() was patched to use GetFinalPathNameByHandle()? It seems like most of the code was already written, so it shouldn't be hard to add a nt.GetFinalPathName() function using the win32_xstat_impl() code (and get_target_path()), to implement a real

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Erik Bray
Erik Bray added the comment: Actually I just finished reading njs's blog post, and as he points out that special case for SETUP_FINALLY is basically broken. There are other cases where it doesn't really work either. For example if you have: if ...: do_something() else: do_something_e

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Actually, I think it's between the end of the `try` and the beginning of the > `finally` (which is precisely the same place that *breaks* for a with > statement). Sorry, this is wrong and Erik was right. But the special case doesn't work anyway, so it doesn

[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-28 Thread Håkon Hægland
New submission from Håkon Hægland: Hello. In order to group several instances of a given application under one icon in the desktop launcher (I am using Ubuntu 17.04) they must have the same appName property of the WM_CLASS string. For example, if I run emacs twice: $ emacs & $ emacs & Both i

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread INADA Naoki
INADA Naoki added the comment: New changeset a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 by INADA Naoki in branch 'master': bpo-29585: optimize site.py startup time (GH-136) https://github.com/python/cpython/commit/a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 --

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2530 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30792] Add contextlib.convert_exception manager

2017-06-28 Thread Steven D'Aprano
New submission from Steven D'Aprano: As discussed on Python-Ideas, there's some interest in a context manager that can convert an exception from one type to another (similarly to the way PEP 479 has StopIteration converted to RuntimeError. See the thread starting here: https://mail.python.org/

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2531 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Test fails on macOS: http://buildbot.python.org/all/builders/x86-64%20Sierra%203.x/builds/402/steps/test/logs/stdio == FAIL: test_getsitepackages (test.test_site.HelperFunctionsTests) -

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2532 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Sharan Yalburgi added the comment: Hey, I am new to Open Source, can I work on this? -- nosy: +Sharan Yalburgi ___ Python tracker ___

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: > Hey, I am new to Open Source, can I work on this? Hi, did you read http://docs.python.org/devguide/ ? IMHO its a good start. You can also join the https://www.python.org/dev/core-mentorship/ group to get help! --

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset b01c574ad6d796025152b5d605eceb7816e6f7a7 by Victor Stinner in branch 'master': bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477) https://github.com/python/cpython/commit/b01c574ad6d796025152b5d605eceb7816e6f7a7 -- _

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Changes by Sharan Yalburgi : -- pull_requests: +2533 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: When uploading patch from another person, please include "Original patch by " in the PR, and the commit message. Thanks. -- nosy: +Mariatta ___ Python tracker ___

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Sharan Yalburgi added the comment: > Hi, did you read http://docs.python.org/devguide/ ? IMHO its a good start. > You can also join the https://www.python.org/dev/core-mentorship/ group to > get help! Yes I did. Thank you. I have made a PR. I says I haven't signed CLA yet. I am doing that rig

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2536 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23808] Symlink to directory on Windows 8

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2535 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue12939] Add new io.FileIO using the native Windows API

2017-06-28 Thread R. David Murray
R. David Murray added the comment: Given that background, closing it seems reasonable to me :) -- ___ Python tracker ___ ___ Python-bu

[issue30785] ast.c duplicates STR(CHILD)

2017-06-28 Thread Emily Morehouse
Emily Morehouse added the comment: Thanks Christopher, you are absolutely correct. There are a few ways in which this code could be optimized (and many other small optimizations probably exist elsewhere in the code). If you are interested in submitting a PR for this, you are more than welcome

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: If possible, I'd like to work on this. -- nosy: +csabella ___ Python tracker ___ ___ Python-bugs-lis

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-28 Thread Brett Cannon
Brett Cannon added the comment: Why do you want an index of *just* decorators? The documentation is structured so you look for the module that probably contains a solution to your problem and then you see what the module may have (which may have a solution that isn't a decorator). Jumping stra

[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue24905] Allow incremental I/O to blobs in sqlite3

2017-06-28 Thread Aviv Palivoda
Aviv Palivoda added the comment: Pinging. As I mentioned in the PR I need a little help with __contains__. -- ___ Python tracker ___ _

[issue30793] Parsing error on f-string-expressions containing strings with backslash

2017-06-28 Thread Anselm Kiefner
New submission from Anselm Kiefner: Considering that x = 3 f"{'hello' if x == 3 else 'goodbye'} world" is a simple, elegant and powerful piece of code that works just as expected by itself, I often find myself stumbling and wondering why f"text {'\n' if x == 3 else ''} text" fails horribly

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python 3.7 got as new os.register_at_fork() function. I don't know if it > could help: The most reasonable IMHO would be for it to mark the event loop "broken" (or closed?) in the child, to forbid any further use. By the way, on Python 3 (which is pretty mu

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, https://github.com/python/cpython/pull/2415 is ready. -- ___ Python tracker ___ ___

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2017-06-28 Thread Steve Dower
Steve Dower added the comment: We tried it at one point, but it made very little difference because we don't use the Windows heap for most allocations. IIRC, replacing Python's optimised allocator with the LFH was a slight performance regression, but I'm not sure the benchmarks were reliable e

[issue30685] Multiprocessing Send to Manager Fails for Large Payload

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: As the comment just above that line says, this is for wire compatibility with older Python versions. But we could have an escape hatch: a special value of the length (which happens to be encoded as a signed integer), such as -64, which would signal a following

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Roman, do you think my analysis above is wrong? Otherwise, I'm inclined to close the issue. -- status: open -> pending ___ Python tracker ___ _

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 5b8f972e093157cc55185841db9ad33fa332a641 by Steve Dower (Steve (Gadget) Barnes) in branch 'master': bpo-30362 : Add list options to launcher. (#1578) https://github.com/python/cpython/commit/5b8f972e093157cc55185841db9ad33fa332a641 --

[issue30362] Launcher add list and list with paths options

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 5b8f972e093157cc55185841db9ad33fa332a641 by Steve Dower (Steve (Gadget) Barnes) in branch 'master': bpo-30362 : Add list options to launcher. (#1578) https://github.com/python/cpython/commit/5b8f972e093157cc55185841db9ad33fa332a641 --

[issue20210] Support the *disabled* marker in Setup files

2017-06-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2537 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30362] Launcher add list and list with paths options

2017-06-28 Thread Steve Dower
Steve Dower added the comment: Thanks, Steve! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is tricky to reproduce but can definitely happen. It seems it is enough to release the lock when done, why did you have to move the `task_handler._state = TERMINATE` line in your patch? -- nosy: +pitrou ___ Py

[issue30794] Add multiprocessing.Process.kill()

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: subprocess.Popen() has both terminate() and kill() methods. Under Unix, the first sends SIGTERM and the second SIGKILL. multiprocessing.Process() only has terminate(), which sends SIGTERM. It may be useful to add a kill() method to send SIGKILL (on Windows

[issue30795] OS X failures in test_site

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: It seems there is a sporadic failure on OS X (oops, sorry, I mean "macOS"): https://travis-ci.org/python/cpython/jobs/248079407#L3403 == FAIL: test_getsitepackages (test.test_site.HelperFunc

[issue21998] asyncio: support fork

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: > The most reasonable IMHO would be for it to mark the event loop "broken" (or > closed?) in the child, to forbid any further use. Hum, the problem is that Python cannot guess if the event loop will be used in the child or the parent process :-/ The problem onl

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Possible answer: have a global WeakSet of event loops. In the child fork handler, iterate over all event loops and "break" those that have already been started. -- ___ Python tracker

[issue26253] tarfile in stream mode always set zlib compression level to 9

2017-06-28 Thread wim glenn
wim glenn added the comment: This issue also got me. compresslevel kwarg works fine for tarfile.open(..., mode='w:gz') but raises exception for tarfile.open(..., mode='w|gz') I want to use stream compression, and compresslevel=1 is more than enough for my use case, the default of 9 is way too

[issue1230540] sys.excepthook doesn't work in threads

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently the `traceback` module has been used from the start (since changset 7f5013a9a9678e86bff00c97f98e7a92c515b94d) to print the exception and not sys.excepthook. I presume this is an oversight, as I don't see any reason to prefer `traceback` here. Tim,

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The approach in Dan's patches looks sane to me and I agree the issue needs fixing. Dan, would you like to submit a PR for this? We're using Github for patch submissions now. -- nosy: +pitrou stage: -> needs patch ___

[issue30795] OS X failures in test_site

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Yeah, it's a known issue, see: http://bugs.python.org/issue29585#msg297194 -- ___ Python tracker ___ ___

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2538 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 9f3bdcb643623e07497af2fc35f0496c2302f1be by Steve Dower (Segev Finer) in branch 'master': bpo-23451: Fix socket deprecation warnings in socketmodule.c (#2318) https://github.com/python/cpython/commit/9f3bdcb643623e07497af2fc35f0496c2302f1be ---

[issue1495754] os.listdir(): inconsistent behavior with trailing spaces

2017-06-28 Thread Eric Fahlgren
Eric Fahlgren added the comment: Would it be appropriate to make a comment about this Windows bug in both os.stat and os.path.exists documentation? I just stumbled upon it independently (both Win7 and 10, both Py 2.7 and 3.6) with nearly the same incantation that Kenneth reported over 10 year

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > The approach in Dan's patches looks sane to me and I agree the issue needs > fixing. Dan, would you like to submit a PR for this? We're using Github for > patch submissions now. Mind that the patch is very outdated and we already have these checks in get

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems there's a check in the top-level get_event_loop() function but not in the DefaultEventLoopPolicy.get_event_loop() method. (also: wow, that stuff is complicated) -- ___ Python tracker

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Possible answer: have a global WeakSet of event loops. In the child fork > handler, iterate over all event loops and "break" those that have already > been started. We can do this but only in debug mode. -- ___

[issue27546] Integrate tkinter and asyncio (and async)

2017-06-28 Thread Tamás Bajusz
Changes by Tamás Bajusz : -- nosy: +gbtami ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It seems there's a check in the top-level get_event_loop() function but not > in the DefaultEventLoopPolicy.get_event_loop() method. Yes, as users aren't supposed to work with policies directly. > (also: wow, that stuff is complicated) Yep. Please assign me

  1   2   >