[ python-Bugs-896061 ] symtable.Symbol.is_global() is strange
SourceForge.net
noreply at sourceforge.net
Thu Feb 12 16:08:25 EST 2004
Bugs item #896061, was opened at 2004-02-12 22:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=896061&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Åstrand (astrand)
Assigned to: Nobody/Anonymous (nobody)
Summary: symtable.Symbol.is_global() is strange
Initial Comment:
The symtable.Symbol.is_global() returns false for
symbols in plain functions:
If the source looks like this:
foo = 1
def fie():
print foo
Calling is_global() for the "foo" name returns False
(using the fie functions SymbolTable).
With a method, however, it works as expected:
foo = 1
class C:
def fie(self):
print foo
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=896061&group_id=5470
More information about the Python-bugs-list
mailing list