[issue12684] profile does not dump stats on exception like cProfile does

Jim Jewett report at bugs.python.org
Wed Mar 14 19:18:24 CET 2012


Jim Jewett <jimjjewett at gmail.com> added the comment:

If I read that patch right, it ignores (and does not even reraise) SystemExit (unchanged), but other Exceptions currently block the dump (and your patch causes them to still dump).  

(1)  Why is SystemExit ignored?

(2)  There should be tests to show that there was a dump after, say, a MyError.

(3)  You can use a single try ... except ... finally statement instead of two try statements.

----------
nosy: +Jim.Jewett

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


More information about the Python-bugs-list mailing list