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

Method __idents_matching

Lib/symtable.py:188–190  ·  view source on GitHub ↗
(self, test_func)

Source from the content-addressed store, hash-verified

186 __nonlocals = None
187
188 def __idents_matching(self, test_func):
189 return tuple(ident for ident in self.get_identifiers()
190 if test_func(self._table.symbols[ident]))
191
192 def get_parameters(self):
193 """Return a tuple of parameters to the function.

Callers 5

get_parametersMethod · 0.95
get_localsMethod · 0.95
get_globalsMethod · 0.95
get_nonlocalsMethod · 0.95
get_freesMethod · 0.95

Calls 2

test_funcFunction · 0.50
get_identifiersMethod · 0.45

Tested by

no test coverage detected