Script randomly exits for seemingly no reason with strange traceback

Andrew Berg bahamutzero8825 at
Wed Feb 15 22:41:51 CET 2012

On 2/15/2012 3:28 PM, John Nagle wrote:
> Are you doing a conditional import, one that takes place after load
> time?  If you do an import within a function or class, it is executed
> when the code around it executes.  If you import a file with a
> syntax error during execution, you could get the error message you're
> getting.
It does have conditional imports, but the tracebacks don't occur while
that function is running (it's executed once, and this happens well after).

CPython 3.2.2 | Windows NT 6.1.7601.17640

More information about the Python-list mailing list