Issue625364
Created on 2002-10-18.19:07:47 by pedronis, last changed 2002-10-29.13:49:43 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2002-10-18 19:07:47 | pedronis | create | |
Created on 2002-10-18.19:07:47 by pedronis, last changed 2002-10-29.13:49:43 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg764 (view) | Author: Samuele Pedroni (pedronis) | Date: 2002-10-18.19:07:47 | |
https://sourceforge.net/mailarchive/message.php? msg_id=2209764 When an exception is raised in jython, sys.last_traceback doesn't seem to get, and sys.exc_info() returns (None, None, None). sys.exc_info() only seems to return something while in a catch block, i.e. try: raise 'hello' except: print sys.last_traceback print sys.exc_info() None ('hello', None, <traceback object at 18669924>) raise 'hello' Traceback (innermost last): File "<console>", line 1, in ? hello print sys.last_traceback None print sys.exc_info() (None, None, None). Is this intentional? If so, how do I get the pdb postmortem facility to work - it tries to access sys.last_traceback Matt |
|||
| msg765 (view) | Author: Samuele Pedroni (pedronis) | Date: 2002-10-18.19:09:29 | |
Logged In: YES user_id=61408 https://sourceforge.net/mailarchive/message.php? msg_id=2218221 it's a bug, in InteractiveIntepreter I think, it uses toString instead of Py.printException, where the logic for setting last_* is. Btw that logic does not seem to be threadsafe if PySystemState instance is shared. Honestly is the first time I look at that code and I presume nobody has used it so far :(. |
|||
| msg766 (view) | Author: Finn Bock (bckfnn) | Date: 2002-10-29.13:49:43 | |
Logged In: YES user_id=4201 Fixed in InteractiveInterpreter.java: 2.9; |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2002-10-18 19:07:47 | pedronis | create | |
Supported by Python Software Foundation,
Powered by Roundup