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 <>
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 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'
Date User Action Args
2017-05-19 21:43:52terry.reedysetrecipients: + terry.reedy, ncoghlan, petr.viktorin, Dormouse759
2017-05-19 21:43:52terry.reedysetmessageid: <>
2017-05-19 21:43:52terry.reedylinkissue30403 messages
2017-05-19 21:43:52terry.reedycreate