MCPcopy Create free account
hub / github.com/RustPython/RustPython / is_declared_global

Method is_declared_global

Lib/symtable.py:335–338  ·  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

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

Callers 1

test_globalsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_globalsMethod · 0.36