[issue9941] Unify trace and profile interfaces

Alexander Belopolsky report at bugs.python.org
Fri Sep 24 19:01:19 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

The runfunc/runcall difference is the easiest to address.  I propose to add runcall to Trace as an alias to runfunc and deprecate runfunc.  In addition, I propose to add __enter__ and __exit__ methods to both Trace and Profile so that they can be used as context managers.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9941>
_______________________________________


More information about the Python-bugs-list mailing list