diff options
Diffstat (limited to 'Lib/symtable.py')
| -rw-r--r-- | Lib/symtable.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index 0d73870..7548a7f 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -191,6 +191,9 @@ class Symbol(object):      def is_global(self):          return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT)) +    def is_declared_global(self): +        return bool(self.__scope == GLOBAL_EXPLICIT) +      def is_local(self):          return bool(self.__flags & DEF_BOUND)  | 
