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

Method new

Lib/symtable.py:33–38  ·  view source on GitHub ↗
(self, table, filename)

Source from the content-addressed store, hash-verified

31 self.__memo = weakref.WeakValueDictionary()
32
33 def new(self, table, filename):
34 if table.type == _symtable.TYPE_FUNCTION:
35 return Function(table, filename)
36 if table.type == _symtable.TYPE_CLASS:
37 return Class(table, filename)
38 return SymbolTable(table, filename)
39
40 def __call__(self, table, filename):
41 key = table, filename

Callers 15

__call__Method · 0.95
__hash_newFunction · 0.45
digest_wrapperFunction · 0.45
_init_builtin_hmacMethod · 0.45
cMethod · 0.45
test_clinic_signatureMethod · 0.45
test_name_attributeMethod · 0.45

Calls 3

FunctionClass · 0.70
ClassClass · 0.70
SymbolTableClass · 0.70

Tested by 12

cMethod · 0.36
test_clinic_signatureMethod · 0.36
test_name_attributeMethod · 0.36
check_file_digestMethod · 0.36
HMACMethod · 0.36
test_equality_newMethod · 0.36
test_availabilityFunction · 0.36