[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

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

[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

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

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

[issue21998] asyncio: support fork

2017-06-28 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

[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 mailing list Unsubscribe: https://mail.python

[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 (https://github.com/python/cpython/blob/c08177a1ccad2ed0d50

[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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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 raise(SIGIN

[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 mailing list Unsubscribe:

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

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

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

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

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

[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

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

[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

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

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

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

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

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

2017-06-28 Thread chexex
Changes by chexex : -- pull_requests: +2539 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

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

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

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

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

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

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

2017-06-28 Thread INADA Naoki
INADA Naoki added the comment: New changeset 6b42eb17649bed9615b6e6cecaefdb2f46990b2c by INADA Naoki in branch 'master': bpo-29585: Fix sysconfig.get_config_var("PYTHONFRAMEWORK") (GH-2483) https://github.com/python/cpython/commit/6b42eb17649bed9615b6e6cecaefdb2f46990b2c -- _

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

2017-06-28 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

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

2017-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: The problem I see with proxy objects for functions/coroutines/generators is that it *doesn't* match how locals() currently behaves in the absence of a tracing function - that gives you a "single shared snapshot" behaviour, where writes to the result of locals()

<    1   2