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 terry.reedy
Recipients Dormouse759, ncoghlan, petr.viktorin, terry.reedy
Date 2017年05月19日.21:43:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495230232.36.0.739281638227.issue30403@psf.upfronthosting.co.za>
In-reply-to
Content
What is the use case?
It only make sense to run any stdlib module with -m, and without -i, if it has a command line interface (and an if __name__ clause). Otherwise, the module is created and then deleted when python exits.
> py -m math
>
C-coded modules with such a command line interface have a mod.py file that imports _mod.
The following can make sense.
> py -m -i math 
Python x.y ...
>>> math.sin(1.48973)
But it is hardly needed as '-m -i math' is only one char less than 'import math'
History
Date User Action Args
2017年05月19日 21:43:52terry.reedysetrecipients: + terry.reedy, ncoghlan, petr.viktorin, Dormouse759
2017年05月19日 21:43:52terry.reedysetmessageid: <1495230232.36.0.739281638227.issue30403@psf.upfronthosting.co.za>
2017年05月19日 21:43:52terry.reedylinkissue30403 messages
2017年05月19日 21:43:52terry.reedycreate

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