Issue630057

classification
Title: use py.printException() [fixes 625364]
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn, cduffy
Priority: normal Keywords: patch

Created on 2002-10-28.19:25:47 by cduffy, last changed 2002-10-29.13:47:17 by bckfnn.

Messages
msg2268 (view) Author: Charles Duffy (cduffy) Date: 2002-10-28.19:25:47
the following code causes pdb to Work For Me, and
resolves bug 625364.

---
jython-2.1.0.orig/org/python/util/InteractiveInterpreter.java
+++
jython-2.1.0/org/python/util/InteractiveInterpreter.java
@@ -96,7 +96,8 @@
     public void showexception(PyException exc) {
         // Should probably add code to handle skipping
top stack frames
         // somehow...
-        write(exc.toString());
+       Py.printException(exc, null, null);
+        //write(exc.toString());
     }
 
     public void write(String data) {
msg2269 (view) Author: Finn Bock (bckfnn) Date: 2002-10-29.13:47:17
Logged In: YES 
user_id=4201

Applied to InteractiveInterpreter.java: 2.9;
History
Date User Action Args
2002-10-28 19:25:47cduffycreate