Message289873
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). |
|
Date |
User |
Action |
Args |
2017-03-20 06:33:43 | ncoghlan | set | recipients:
+ ncoghlan |
2017-03-20 06:33:43 | ncoghlan | set | messageid: <1489991623.12.0.90529490385.issue29857@psf.upfronthosting.co.za> |
2017-03-20 06:33:43 | ncoghlan | link | issue29857 messages |
2017-03-20 06:33:42 | ncoghlan | create | |
|