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

Method get_cells

Lib/symtable.py:233–239  ·  view source on GitHub ↗

Return a tuple of cell variables in the function.

(self)

Source from the content-addressed store, hash-verified

231 return self.__frees
232
233 def get_cells(self):
234 """Return a tuple of cell variables in the function.
235 """
236 if self.__cells is None:
237 is_cell = lambda x: _get_scope(x) == CELL
238 self.__cells = self.__idents_matching(is_cell)
239 return self.__cells
240
241
242class 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