[issue23915] traceback set with BaseException.with_traceback() overwritten on raise

Travis A. Everett report at bugs.python.org
Sun Apr 12 17:51:44 CEST 2015


Travis A. Everett added the comment:

Thanks, Martin--I should've thought to check to see if it'd just been pushed back in the list. I was just focusing on a workaround for another problem and did a double-take when the traceback value didn't match what was set.

This resolution is fine by me, but a note in the doc for with_traceback (https://docs.python.org/3/library/exceptions.html#BaseException.with_traceback) that it'll be immediately bumped back in the list when raised (as in the documentation's usage example) might help clarify for others.

----------

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


More information about the Python-bugs-list mailing list