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

Method is_local

Lib/symtable.py:340–344  ·  view source on GitHub ↗

Return *True* if the symbol is local.

(self)

Source from the content-addressed store, hash-verified

338 return bool(self.__scope == GLOBAL_EXPLICIT)
339
340 def is_local(self):
341 """Return *True* if the symbol is local.
342 """
343 return bool(self.__scope in (LOCAL, CELL)
344 or (self.__module_scope and self.__flags & DEF_BOUND))
345
346 def is_annotated(self):
347 """Return *True* if the symbol is annotated.

Callers 2

test_localMethod · 0.45
test_annotatedMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_localMethod · 0.36
test_annotatedMethod · 0.36