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

Method get_frees

Lib/symtable.py:225–231  ·  view source on GitHub ↗

Return a tuple of free variables in the function.

(self)

Source from the content-addressed store, hash-verified

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

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