From: <no...@so...> - 2001-07-18 16:26:37
|
Bugs item #415963, was opened at 2001-04-13 11:35 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=415963&group_id=12867 Category: Core >Group: Fixed in 2.1a2 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Finn Bock (bckfnn) Assigned to: Samuele Pedroni (pedronis) Summary: UnboundLocalError not raised on delete Initial Comment: A difference between pythons: Jython 2.1a1 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> def foo( ): ... del dne ... >>> foo() >>> \Python21\python.exe Python 2.1b2 (#12, Mar 23 2001, 14:01:30) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. >>> def foo(): ... del dne ... >>> foo() Traceback (most recent call last): File "<stdin>", line 1, in ? File "<stdin>", line 2, in foo UnboundLocalError: local variable 'dne' referenced before assignment >>> ---------------------------------------------------------------------- Comment By: Samuele Pedroni (pedronis) Date: 2001-05-15 11:55 Message: Logged In: YES user_id=61408 fixed in current CVS. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=415963&group_id=12867 |