Message171387
| 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:20 | larry | set | recipients:
+ larry, michael.foord |
| 2012年09月27日 18:41:20 | larry | set | messageid: <1348771280.27.0.553005427274.issue16064@psf.upfronthosting.co.za> |
| 2012年09月27日 18:41:19 | larry | link | issue16064 messages |
| 2012年09月27日 18:41:19 | larry | create |
|