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

Method clear

Lib/collections/__init__.py:1144–1146  ·  view source on GitHub ↗

Clear maps[0], leaving maps[1:] intact.

(self)

Source from the content-addressed store, hash-verified

1142 raise KeyError(f'Key not found in the first mapping: {key!r}')
1143
1144 def clear(self):
1145 'Clear maps[0], leaving maps[1:] intact.'
1146 self.maps[0].clear()
1147
1148 def __ior__(self, other):
1149 self.maps[0].update(other)

Callers 3

clearMethod · 0.45
clearMethod · 0.45
_reset_cacheFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected