Add is_declared_global() which distinguishes between implicit and
explicit global variables.
diff --git a/Lib/symtable.py b/Lib/symtable.py
index a8112ff..44d70a3 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -190,6 +190,9 @@
     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)