[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-25 Thread Richard Oudkerk
Richard Oudkerk added the comment: Testing the is_forking() requires cx_freeze or something similar, so it really cannot go in the test suite. I have tested it manually (after spending too long trying to get cx_freeze to work with a source build). It should be noted that on Unix freezing is c

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-24 Thread STINNER Victor
STINNER Victor added the comment: Can we close this issue? Or Richard wants to write a test? -- ___ Python tracker ___ ___ Python-bugs

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb6377db0a9e by Richard Oudkerk in branch '3.4': Issue #20990: Correction for 619331c67638. http://hg.python.org/cpython/rev/bb6377db0a9e -- ___ Python tracker ___

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-23 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to write a test? Le dimanche 23 mars 2014, Roundup Robot a écrit : > > Roundup Robot added the comment: > > New changeset 619331c67638 by Richard Oudkerk in branch '3.4': > Issue #20990: Fix issues found by pyflakes for multiprocessing. >

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 619331c67638 by Richard Oudkerk in branch '3.4': Issue #20990: Fix issues found by pyflakes for multiprocessing. http://hg.python.org/cpython/rev/619331c67638 -- nosy: +python-dev ___ Python tracker

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-20 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- assignee: -> sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It looks like multiprocessing.get_context() exists, but I don't see how it > is defined. It is defined by: globals().update((name, getattr(context._default_context, name)) for name in context._default_context.__all__) > For main(), it shou

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-20 Thread STINNER Victor
STINNER Victor added the comment: Serhiy suggested (msg214136): "Lib/multiprocessing/synchronize.py: Add at the start of the file: from . import get_context" It looks like multiprocessing.get_context() exists, but I don't see how it is defined. For main(), it should maybe be replaced with _ma

[issue20990] pyflakes: undefined names, get_context() and main(), in multiprocessing

2014-03-20 Thread STINNER Victor
New submission from STINNER Victor: Two warnings from pyflakes: diff -r 72889bf8531d Lib/multiprocessing/spawn.py --- a/Lib/multiprocessing/spawn.py Tue Mar 18 13:21:29 2014 +0100 +++ b/Lib/multiprocessing/spawn.py Wed Mar 19 11:49:24 2014 +0100 @@ -64,6 +64,7 @@ def freeze_support():