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

Method __init__

Lib/test/test_descr.py:420–426  ·  view source on GitHub ↗
(self_local, *a, **kw)

Source from the content-addressed store, hash-verified

418 class C(dict):
419 state = -1
420 def __init__(self_local, *a, **kw):
421 if a:
422 self.assertEqual(len(a), 1)
423 self_local.state = a[0]
424 if kw:
425 for k, v in list(kw.items()):
426 self_local[v] = k
427 def __getitem__(self, key):
428 return self.get(key, 0)
429 def __setitem__(self_local, key, value):

Callers

nothing calls this directly

Calls 4

assertEqualMethod · 0.95
lenFunction · 0.85
listClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected