Terry J. Reedy added the comment: 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' ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30403> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com