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

Method is_nonlocal

Lib/symtable.py:328–330  ·  view source on GitHub ↗

Return *True* if the symbol is nonlocal.

(self)

Source from the content-addressed store, hash-verified

326 or (self.__module_scope and self.__flags & DEF_BOUND))
327
328 def is_nonlocal(self):
329 """Return *True* if the symbol is nonlocal."""
330 return bool(self.__flags & DEF_NONLOCAL)
331
332 def is_declared_global(self):
333 """Return *True* if the symbol is declared global

Callers 1

test_nonlocalMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_nonlocalMethod · 0.64