[Patches] [ python-Patches-522279 ] transformer.py nodes shadows global

noreply@sourceforge.net noreply@sourceforge.net
Thu, 28 Feb 2002 08:11:22 -0800


Patches item #522279, was opened at 2002-02-24 19:07
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=522279&group_id=5470

Category: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Evelyn Mitchell (efm)
Assigned to: Nobody/Anonymous (nobody)
Summary: transformer.py nodes shadows global

Initial Comment:
pychecker complains:
transformer.py:295: Local variable (nodes) shadows
global defined on line 0
transformer.py:297: Local variable (nodes) shadows
global defined on line 0
transformer.py:298: Local variable (nodes) shadows
global defined on line 0

I renamed nodes to nodesl (because nodelist was in
scope).

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

>Comment By: Evelyn Mitchell (efm)
Date: 2002-02-28 09:11

Message:
Logged In: YES 
user_id=13263

I'm guessing it's picking up the one from ast.py

from ast import *  (at line 25 of transformer)

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-02-28 08:35

Message:
Logged In: YES 
user_id=21627

I fail to see the global that is being shadowed. Any clues?

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

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