[Python-bugs-list] [ python-Bugs-439798 ] Nested scopes core dump

noreply@sourceforge.net noreply@sourceforge.net
Tue, 10 Jul 2001 02:26:41 -0700


Bugs item #439798, was opened at 2001-07-09 12:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439798&group_id=5470

Category: Parser/Compiler
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Evan Simpson (evansimpson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Nested scopes core dump

Initial Comment:
For an interesting error, followed by a core dump:

from __future__ import nested_scopes
def f(x):
    class C:
        def m(self):
            return x
        x

The bug occurs when the same variable name appears in
both the class scope and the method scope.



----------------------------------------------------------------------

>Comment By: Thomas Wouters (twouters)
Date: 2001-07-10 02:26

Message:
Logged In: YES 
user_id=34209

This has already been fixed by Jeremy shortly after 2.1's
release, so 2.2 and 2.1.1 will not contain this bug.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439798&group_id=5470