Nick Coghlan <ncogh...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue9325>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to