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

Method get_frees

Lib/symtable.py:224–230  ·  view source on GitHub ↗

Return a tuple of free variables in the function.

(self)

Source from the content-addressed store, hash-verified

222 return self.__nonlocals
223
224 def get_frees(self):
225 """Return a tuple of free variables in the function.
226 """
227 if self.__frees is None:
228 is_free = lambda x: _get_scope(x) == FREE
229 self.__frees = self.__idents_matching(is_free)
230 return self.__frees
231
232
233class Class(SymbolTable):

Callers 1

test_function_infoMethod · 0.80

Calls 2

__idents_matchingMethod · 0.95
_get_scopeFunction · 0.85

Tested by 1

test_function_infoMethod · 0.64