This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark
Recipients Mark
Date 2012-07-06.08:28:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341563293.08.0.285980110052.issue15262@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the following code:

from thread import start_new
def f(): typo #there is no variable called typo
start_new(f, ())

If run from the command line, this produces a traceback.  If run from IDLE, it does not.  I suspect this is not by design.  This caused me endless grief in debugging until one happy day I discovered the traceback module.  I now write:

from thread import start_new
from traceback import print_exc
def f():
 try: typo
 except: print_exc()
start_new(f, ())

this works, but I wish I didn't need it.
History
Date User Action Args
2012-07-06 08:28:13Marksetrecipients: + Mark
2012-07-06 08:28:13Marksetmessageid: <1341563293.08.0.285980110052.issue15262@psf.upfronthosting.co.za>
2012-07-06 08:28:12Marklinkissue15262 messages
2012-07-06 08:28:12Markcreate