[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

Nick Coghlan report at bugs.python.org
Tue Aug 29 05:27:06 EDT 2017


Nick Coghlan added the comment:

Regarding directories and zipfiles, runpy._run_module_as_main also handles those - the CLI effectively transforms directory and zipfile execution into a "python -m __main__" call with a suitably adjusted sys.path[0] entry (i.e. the given directory or zip archive, rather than the current directory).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16217>
_______________________________________


More information about the Python-bugs-list mailing list