MCPcopy Index your code
hub / github.com/python/cpython / is_declared_global

Method is_declared_global

Lib/symtable.py:332–335  ·  view source on GitHub ↗

Return *True* if the symbol is declared global with a global statement.

(self)

Source from the content-addressed store, hash-verified

330 return bool(self.__flags & DEF_NONLOCAL)
331
332 def is_declared_global(self):
333 """Return *True* if the symbol is declared global
334 with a global statement."""
335 return bool(self.__scope == GLOBAL_EXPLICIT)
336
337 def is_local(self):
338 """Return *True* if the symbol is local.

Callers 1

test_globalsMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_globalsMethod · 0.64