summaryrefslogtreecommitdiffstats
path: root/Lib/symtable.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r--Lib/symtable.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index 9d58618..0a25073 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -201,6 +201,9 @@ class Symbol(object):
DeprecationWarning, 2)
return False
+ def is_declared_global(self):
+ return bool(self.__scope == GLOBAL_EXPLICIT)
+
def is_local(self):
return bool(self.__flags & DEF_BOUND)