MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / __iter__

Method __iter__

03-dict-set/transformdict.py:67–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 return len(self._data)
66
67 def __iter__(self):
68 return iter(self._original.values())
69
70 def __getitem__(self, key):
71 return self._data[self._transform(key)]

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected