Good catch, Lee. I’ve filed this as bug 1015 on CodePlex.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Culver
Sent: Sunday, July 16, 2006 12:45 PM
To: Discussion of IronPython
Subject: [IronPython] Exceptions from the console in a background thread...

 

I’d like to file a low priority bug…under the “wouldn’t it be nice if…” category.

 

When you have an exception occur while using the console, it produces a very nice output (a stack trace including only Python code).

 

However, if you run this in a background thread you get a monstrosity of a stack trace including C# code with no Python code.  It would be very nice if this printed a nice python stack trace since the error which is returned in a thread is not useful in the slightest.  Here’s a quick repro:

 

>>> def Test():

...     asdf

...

>>> Test()  # useful stack trace

>>> import thread

>>> thread.start_new_thread(Test, tuple())  # not useful at all

 

Thanks,

-Lee

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to