Author ncoghlan
Recipients ncoghlan
Date 2017-03-20.06:33:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489991623.12.0.90529490385.issue29857@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 14208 was ultimately resolved through an import system specific solution, with PEP 451 making the module name passed to `python -m` available as `__main__.__spec__.name`.

However, there are other situations where it may be useful to offer an implementation-dependent attribute in the `sys` module that provides access to a copy of the host application's raw `argv` details, rather than the filtered `sys.argv` details that are left after the host application's command line processing has been completed.

In the case of CPython, where `sys.argv` represents the arguments to the Python level __main__ function, `sys._raw_argv` would be a copy of the argv argument to the C level main() or wmain() function (as appropriate for the platform).
History
Date User Action Args
2017-03-20 06:33:43ncoghlansetrecipients: + ncoghlan
2017-03-20 06:33:43ncoghlansetmessageid: <1489991623.12.0.90529490385.issue29857@psf.upfronthosting.co.za>
2017-03-20 06:33:43ncoghlanlinkissue29857 messages
2017-03-20 06:33:42ncoghlancreate