[ python-Bugs-1083202 ] UnboundLocalError raised by atexit module
SourceForge.net
noreply at sourceforge.net
Sat Dec 11 03:54:03 CET 2004
Bugs item #1083202, was opened at 2004-12-10 16:39
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1083202&group_id=5470
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Gary H. Loechelt (loechelt)
Assigned to: Nobody/Anonymous (nobody)
Summary: UnboundLocalError raised by atexit module
Initial Comment:
The following exception is raised on exit by Python 2.4
under certain circumstances:
Error in sys.exitfunc:
Traceback (most recent call last):
File
"/usr/local/python/python2.4/lib/python2.4/atexit.py",
line 24, in _run_exitfuncs
exc_info = sys.exc_info()
UnboundLocalError: local variable 'sys' referenced
before assignment
I traced the problem to a missing import statement in
the atexit.py file. I am enclosing a corrected file
with the patch.
Gary H. Loechelt
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-12-10 21:54
Message:
Logged In: YES
user_id=80475
Fixed.
See Lib/atexit.py 1.9 and 1.8.2.1.
Thanks for the bug report.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1083202&group_id=5470
More information about the Python-bugs-list
mailing list