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

Method is_local

Lib/symtable.py:337–341  ·  view source on GitHub ↗

Return *True* if the symbol is local.

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

test_localMethod · 0.80
test_annotatedMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_localMethod · 0.64
test_annotatedMethod · 0.64