Amaury Forgeot d'Arc added the comment:
> traceback.print_last() depends on the existence of sys.last_type
Yes, that is exactly as documented:
>>> help(traceback.print_last)
Help on function print_last in module traceback:
print_last(limit=None, file=None)
This is a shorthand for 'print_exce
Χρήστος Γεωργίου (Christos Georgiou) added the comment:
I haven't submitted a patch since the transition from sf.net to
bugs.python.org; I assume that I don't have to open a new patch for
this, but if I have to, please let me know and I will gladly do it.
The unified diff is attached; the test e
New submission from Χρήστος Γεωργίου (Christos Georgiou):
traceback.print_last() depends on the existence of sys.last_type,
sys.last_value, sys.last_traceback, which don't always exist when
called. See attached example file. I will shortly send the patch for
Lib/traceback.py
--
component