MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_nonlocal

Method is_nonlocal

Lib/symtable.py:331–333  ·  view source on GitHub ↗

Return *True* if the symbol is nonlocal.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

test_nonlocalMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_nonlocalMethod · 0.36