Message293979
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' |
|
Date |
User |
Action |
Args |
2017-05-19 21:43:52 | terry.reedy | set | recipients:
+ terry.reedy, ncoghlan, petr.viktorin, Dormouse759 |
2017-05-19 21:43:52 | terry.reedy | set | messageid: <1495230232.36.0.739281638227.issue30403@psf.upfronthosting.co.za> |
2017-05-19 21:43:52 | terry.reedy | link | issue30403 messages |
2017-05-19 21:43:52 | terry.reedy | create | |
|