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 larry
Recipients larry, michael.foord
Date 2012-09-27.18:41:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348771280.27.0.553005427274.issue16064@psf.upfronthosting.co.za>
In-reply-to
Content
I wrote the following script called "bonkers.py":
--
    import sys
    print(sys.argv[0])
--

then ran
    % python3 -m unittest bonkers

It printed
--
    ['python -m unittest', 'bonkers']
--

Shouldn't it say "python3", not "python"?  Maybe it should use sys.executable?  (Though that gets tricky if there are spaces in the filename.)
History
Date User Action Args
2012-09-27 18:41:20larrysetrecipients: + larry, michael.foord
2012-09-27 18:41:20larrysetmessageid: <1348771280.27.0.553005427274.issue16064@psf.upfronthosting.co.za>
2012-09-27 18:41:19larrylinkissue16064 messages
2012-09-27 18:41:19larrycreate