[New-bugs-announce] [issue32094] _args_from_interpreter_flags() doesn't keep -X options

Antoine Pitrou report at bugs.python.org
Mon Nov 20 13:18:46 EST 2017


New submission from Antoine Pitrou <pitrou at free.fr>:

`subprocess._args_from_interpreter_flags()` is used to control the flags passed to child Python processes, for example launched by multiprocessing.  Unfortunately, not all flags are actually recognized by this function:

$ ./python -X dev
Python 3.7.0a2+ (heads/master:895862a, Nov 20 2017, 19:15:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys._xoptions
{'dev': True}
>>> import subprocess
>>> subprocess._args_from_interpreter_flags()
['-Wdefault']

----------
components: Library (Lib)
messages: 306574
nosy: barry, davin, pitrou, vstinner
priority: normal
severity: normal
status: open
title: _args_from_interpreter_flags() doesn't keep -X options
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32094>
_______________________________________


More information about the New-bugs-announce mailing list