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
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
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
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9914
___
___
Python-bugs-list
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
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
Changes by Brett Cannon br...@python.org:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9914
___
___
Python-bugs-list mailing
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: -eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9914
___
___
Python-bugs-list
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