[issue30800] zlib.compressobj took too much memory on window

2017-06-28 Thread dennis
New submission from dennis: I'm working on a MMORPG Game server, and using the 32bit window Python(Python2.7.9 and Python3.6.0). And i create a zlib.compressobj for every connection. when the connection reach about 7500, the program raise an MemoryError exception. The Program only took me

[issue15862] IDLE: startup problem when HOME does not exist

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #8231, msg297255 suggests some refactoring to make this sort of thing testable without crippling a developer system. -- assignee: -> terry.reedy nosy: -BreamoreBoy stage: -> test needed versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4,

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I like it because it categorically eliminates the "tracing or not?" global > state dependence when it comes to manipulation of the return value of > locals() - manipulating that will either always affect the original execution > namespace immediately

[issue8231] Unable to run IDLE without write-access to home directory

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Problems with patching 2.7 are no longer relevant. To test, we should refactor config so that the attempt to find and access $HOME and .idlerc are isolated in a function that can be mocked to simulate various problems. def get_rc(): """Return a directory

[issue30799] Improved test coverage Lib/_osx_support.py 99%

2017-06-28 Thread chexex
Changes by chexex : -- pull_requests: +2539 ___ Python tracker ___ ___

[issue30799] Improved test coverage Lib/_osx_support.py 99%

2017-06-28 Thread chexex
Changes by chexex : -- components: Tests nosy: chexex priority: normal severity: normal status: open title: Improved test coverage Lib/_osx_support.py 99% versions: Python 3.7 ___ Python tracker

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal's comments from Rietveld review (see msg220391); 529: Does this have to be a separate, new Tk instance? Wouldn't a temporary widget under the current Tk be just as good? Creating a new Tk instance could take a relatively large amount of time time and

[issue6691] Support for nested classes and function for pyclbr

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the code, there are several references to nested classes, implying that they should already work. So I might want to claim this is a behavior issue, contrary to my adding 'enhancement' before. But moot point until patch is reviewed and otherwise

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread KunYu Chen
KunYu Chen added the comment: Thanks Terry, I'll focus on the current tests. Will catch up with you guys later. :D -- ___ Python tracker ___

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

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Proceed as you want. Keep in mind that the interface to the changes structure will be changed by #30779. The testing logic should not be, however. -- ___ Python tracker

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

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let's do it 'right'. Step 1: Write class design in the form of a class with methods with APIs and docstrings as the bodies. class Changes: """Manage a user's proposed configuation option changes. Changes are either cancelled or applied in a single

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread Louie Lu
Louie Lu added the comment: Terry: I'm on idle-dev, the bi-weekly sprint I said isn't only one time, I mean about each bi-weekly. I'm ok with concentrate on multiple improvements of one component. -- ___ Python tracker

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

2017-06-28 Thread Louie Lu
Louie Lu added the comment: I'm trying to add the test on configdialog, currently working on KeysTest. -- nosy: +louielu ___ Python tracker ___

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2017-06-28 Thread zachrahan
zachrahan added the comment: This one just bit me too. It seems that if JSON serialization accepts non-string dict keys, it should make sure to accept them in all circumstances. Currently, there is an error *only* with mixed-type dicts, *only* when sort_keys=True. In addition, the error

[issue30792] Add contextlib.convert_exception manager

2017-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Also clarifying a point that came up later in the thread [1]: one of the motivating examples that came up in the thread was the idea of using this to catch AttributeError exceptions in property and __getattr__ implementations and convert them to RuntimeError.

[issue30798] Document that subprocess.Popen does not set PWD

2017-06-28 Thread James Lin
New submission from James Lin: Even though http://bugs.python.org/issue4057 was rejected (which I think is fair), I think it would be worth mentioning something about PWD in the Python docs for subprocess.Popen's cwd parameter (and possibly for os.chdir): 1. It's pretty common for people to

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

2017-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This request doesn't make sense to me. Decorators are an implementation technique and not really a topic unto themselves. FWIW, Guido recently rejected a request to create a listing of all the command line tools. Python docs are primarily organized by

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

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: Sorry, I meant bpo-21895. -- ___ Python tracker ___ ___ Python-bugs-list

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

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: In terms of general design cleanliness, I think it would be better to make `interrupt_main` work reliably than to have IDLE add workarounds for its unreliability. AFAICT the ideal, minimal redundancy solution would be: - interrupt_main just calls

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

2017-06-28 Thread Xavier G. Domingo
Changes by Xavier G. Domingo : -- nosy: +xgdomingo ___ Python tracker ___ ___

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

2017-06-28 Thread Eric V. Smith
Eric V. Smith added the comment: The reason that this was done was to give us flexibility in deciding how the backslashes should be interpreted in the future. I announced it on python-dev here: https://mail.python.org/pipermail/python-dev/2016-August/145979.html. That message contains a link

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: koobs, perhaps you would like to give me temporary shell access to that machine? -- ___ Python tracker ___

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: The test added for issue #30703 crashes on some Unix buildbots (FreeBSD 9.x, OS X Tiger, AIX). Example here: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/275/steps/test/logs/stdio As noted in the PR for that issue, some systems

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-06-28 Thread Segev Finer
New submission from Segev Finer: This is caused by _GNU_SOURCE being defined here: https://github.com/python/cpython/blob/c08177a1ccad2ed0d50898c2731b518c631aed14/configure.ac#L124, But also getting defined by AC_USE_SYSTEM_EXTENSIONS

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 7526cadd64566725ffc56071a7208828a46ddbd8 by Steve Dower (Segev Finer) in branch 'master': bpo-30726: Also fix pyexpat.vcxproj (#2375) https://github.com/python/cpython/commit/7526cadd64566725ffc56071a7208828a46ddbd8 --

[issue21998] asyncio: support fork

2017-06-28 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm not sure why it would be debug-only. You usually don't fork() often, and > you don't have many event loops around, so the feature sounds cheap. I think you're right. If it's low or zero overhead we can have the check always enabled. --

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

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c08177a1ccad2ed0d50898c2731b518c631aed14 by Antoine Pitrou in branch 'master': bpo-30703: Improve signal delivery (#2415) https://github.com/python/cpython/commit/c08177a1ccad2ed0d50898c2731b518c631aed14 --

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why it would be debug-only. You usually don't fork() often, and you don't have many event loops around, so the feature sounds cheap. In any case, I'm not directly affected by this issue, I'm merely suggesting options. --

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > A compromise for the short term would be to detect fork in debug mode and raise an exception, and explain how to fix such bug. What do you think? I'd prefer to fix it properly in 3.7. -- ___ Python tracker

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

2017-06-28 Thread Steve Dower
Steve Dower added the comment: There is only one deprecation warning left in current builds: ..\Modules\expat\xmlparse.c(796): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online

[issue21998] asyncio: support fork

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: A compromise for the short term would be to detect fork in debug mode and raise an exception, and explain how to fix such bug. What do you think? -- ___ Python tracker

[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

[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

[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. -- ___

[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

[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

[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

[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

[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 ___ ___

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

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2538 ___ Python tracker ___ ___

[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 ___

[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

[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.

[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

[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

[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

[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

[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

[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 ___

[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 ___

[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 ___ ___

[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 --

[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 --

[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

[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

[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

[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 ___

[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

[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

[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 ___

[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 ___

[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

[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 ___

[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

[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 ___

[issue23808] Symlink to directory on Windows 8

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2535 ___ Python tracker ___ ___

[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 ___ ___

[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

[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
Changes by Sharan Yalburgi : -- pull_requests: +2533 ___ Python tracker ___ ___

[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 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! --

[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 ___

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

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2532 ___ Python tracker ___ ___

[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: +2531 ___ Python tracker ___ ___

[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:

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

2017-06-28 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2530 ___ Python tracker ___ ___

[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 --

[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

[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

[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:

[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

[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

[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 ___ ___

[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 ___ ___

[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

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

2017-06-28 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[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

[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: >

[issue29411] Option --executable for entry_points

2017-06-28 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___

[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

[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:

[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,

[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. --

[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

[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 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

  1   2   >