homepage

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 <1423567544.22.0.0694451911046.issue23427@psf.upfronthosting.co.za>
In-reply-to
Content
Victor,
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.
Mihail,
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:
https://hg.python.org/cpython/file/default/Modules/main.c#l684
So, no, without a code change in main.c there will be no way to retain the command for later usage.
History
Date User Action Args
2015年02月10日 11:25:44jgehrckesetrecipients: + jgehrcke, georg.brandl, pitrou, vstinner, docs@python, krivushinme
2015年02月10日 11:25:44jgehrckesetmessageid: <1423567544.22.0.0694451911046.issue23427@psf.upfronthosting.co.za>
2015年02月10日 11:25:44jgehrckelinkissue23427 messages
2015年02月10日 11:25:43jgehrckecreate

AltStyle によって変換されたページ (->オリジナル) /