[issue9325] Add an option to pdb/trace/profile to run library module as a script

Mario Corchero report at bugs.python.org
Wed Jan 10 16:20:40 EST 2018


Mario Corchero <mariocj89 at gmail.com> added the comment:

Thanks Nick. I've sent patches for all of them but `dis`.

`dis` does not "run" the code.
Adding the -m option is basically identical to just running it on the __main__.py if the module is runnable or on the __init__ if it is not.

If you think there is still value on that, I am happy to send a PR for it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue9325>
_______________________________________


More information about the Python-bugs-list mailing list