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

Method __len__

Lib/collections/__init__.py:1072–1073  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1070 return self[key] if key in self else default # needs to make use of __contains__
1071
1072 def __len__(self):
1073 return len(set().union(*self.maps)) # reuses stored hash values if possible
1074
1075 def __iter__(self):
1076 d = {}

Callers

nothing calls this directly

Calls 2

setFunction · 0.85
unionMethod · 0.80

Tested by

no test coverage detected