[issue1860] traceback.print_last fails

2008-01-17 Thread Amaury Forgeot d'Arc
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

[issue1860] traceback.print_last fails

2008-01-17 Thread Χρήστος Γεωργίου (Christos Georgiou)
Χρήστος Γεωργίου (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

[issue1860] traceback.print_last fails

2008-01-17 Thread Χρήστος Γεωργίου (Christos Georgiou)
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