[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2017-01-30 Thread Davin Potts
Davin Potts added the comment: Though this issue is specifically concerned with runpy APIs and their impact especially in running unittest test scripts, it's worth commenting here for people who need a workaround in the short term: code such as that shared in

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2017-01-30 Thread bli
bli added the comment: Just to report that this bug seems responsible for failures at cProfiling some code using multiprocessing: http://stackoverflow.com/q/41892297/1878788 http://stackoverflow.com/q/11512499/1878788 -- nosy: +bli ___ Python

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2015-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one problem (with pickle) was reported in issue24676. -- nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 -Python 3.2 Added file: http://bugs.python.org/file39963/issue24676.py

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-11-12 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9914 ___ ___ Python-bugs-list

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This is a tricky one. Long term, the right approach is to migrate all the scripts that run other scripts over to runpy, but the runpy API needs work before we can do that (see #9325). For bug fix purposes though, these modules can borrow some

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-20 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Yesterday I've studied this problem with flavio.ribeiro, and we've started solving it. The result of our progress is available at: issue5758_trace_execute_other_modules_main_v0.patch The problem of our approach is that any code

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9914 ___ ___ Python-bugs-list mailing

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-14 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9914 ___ ___ Python-bugs-list

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2010-09-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: The main() method of trace and profile modules attempt to emulate the environment in which traced code runs when invoked directly, but it fails in several respects. The specific problem which is the subject of this