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

The other thing is not related to the one reported here, but I found it while 
writing the test for this. 

We have a new API in 3.10, where you can do traceback.print_exception(ex)   (so 
you don't need to give the whole type,val,tb triplet).

But:

>>> traceback.print_exception(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\src\cpython-dev\lib\traceback.py", line 110, in 
print_exception
    value, tb = _parse_value_tb(exc, value, tb)
  File "C:\Users\User\src\cpython-dev\lib\traceback.py", line 94, in 
_parse_value_tb
    return exc, exc.__traceback__
AttributeError: 'NoneType' object has no attribute '__traceback__'

----------

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

Reply via email to