Nick Coghlan <[email protected]> added the comment: Issue 21862 is a related issue specifically for the cProfile module.
In that case, cProfile's command line invocation *doesn't* use the main module, so the patch is able to just create a synthetic call to runpy.run_module as a string and compile that as the code to be profiled. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue9325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
