This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jgehrcke
Recipients docs@python, georg.brandl, jgehrcke, krivushinme, pitrou, vstinner
Date 2015-02-10.11:25:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

I support the idea of sys.command. However, it would be unpopulated most of the time (e.g. set to None by default). Now, is that something we should push forward or not? I would work on a patch, but we should have an agreement first, I guess.


the original argv becomes modified in the very early bootstrap phase, and the command gets lost within that process: it gets *overwritten* with "-c", which is exactly why you are observing two "-c". This happens here:

So, no, without a code change in main.c there will be no way to retain the command for later usage.
Date User Action Args
2015-02-10 11:25:44jgehrckesetrecipients: + jgehrcke, georg.brandl, pitrou, vstinner, docs@python, krivushinme
2015-02-10 11:25:44jgehrckesetmessageid: <>
2015-02-10 11:25:44jgehrckelinkissue23427 messages
2015-02-10 11:25:43jgehrckecreate