[IronPython] Exceptions from the console in a background thread...

Lee Culver t-clacul at microsoft.com
Sun Jul 16 21:45:00 CEST 2006


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060716/da8b2e24/attachment.html>


More information about the Ironpython-users mailing list