[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread R. David Murray
R. David Murray added the comment: In 2.7/3.1 this message is a ValueError saying "no last traceback". -- nosy: +r.david.murray priority: -> low resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
Viktor Ferenczi added the comment: >From the manual of the sys module: """ last_type last_value last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter prints an error message and a stack traceback. """ So the AttributeEr

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
New submission from Viktor Ferenczi : Python 2.5.4, Windows MSI installer, WinXP SP2, 32 bit: Try the following code: (test script attached) import traceback try: someundefinedsymbol except: traceback.print_last() It will raise the following exception: Traceback (most recent call las