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

Alexander Belopolsky report at bugs.python.org
Tue Oct 5 18:59:19 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I am afraid, for ordinary scripts these modules effectively use option 3.  I think these modules should remove its own scaffolding from "real" __main__ before loading any traced code.  I am not sure how this can be achieved, though.

----------

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


More information about the Python-bugs-list mailing list