Nick Coghlan added the comment: runpy needs to be refactored at least a bit before this will be practical. Issue 9325 is an existing issue for the same idea that discusses some of the problems to be resolved (it's a good idea, just a fair bit of work).
---------- resolution: -> duplicate status: open -> closed superseder: -> Add an option to pdb/trace/profile to run library module as a script _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17473> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com