Author terry.reedy
Recipients Dormouse759, encukou, ncoghlan, 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, encukou, 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