Irit Katriel <iritkatr...@gmail.com> added the comment:

I see what you mean. I think it's ok in traceback.py to reject an exception 
clone which is not an instance of BaseException. I agree this should not be 
backported. You could make that explicit by adding a few words to this sentence 
in the doc, to make it about the exc value as well as the traceback:

"The module uses traceback objects — this is the object type that is stored in 
the sys.last_traceback variable and returned as the third item from 
sys.exc_info()."

(https://docs.python.org/3/library/traceback.html)

The C code fix doesn't need to be backported either - this issue is not 
something a user had a problem with, we found it through test coverage.

----------

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

Reply via email to