Nick Coghlan added the comment:

A few updates here:

* For the specific case of `python -m`, the original argument has been 
available as `__main__.__spec__.name` since Python 3.4

* Also since Python 3.4, the `multiprocessing` module has correctly handled the 
-m switch. For more details, see 
https://docs.python.org/3/whatsnew/3.4.html#multiprocessing and the linked 
issues.

* However, there are still some cases where it is potentially useful to have 
access to the full details of how the host Python runtime was invoked, rather 
than just the arguments that were left after CPython's runtime processing was 
completed. I filed issue 29857 as a new RFE specifically suggesting a 
`sys._raw_argv` attribute addressing that question.

----------
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.4 -Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14208>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to