Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

The sys.setprofile() doc don't make it clear whether the __enter__ and __exit__ 
call were intended to be traceable events.  The docs do state, "there is no way 
for the profiler to know about context switches between threads, so it does not 
make sense to use this in the presence of multiple threads."

----------
nosy: +rhettinger, vstinner

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42705>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to