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

Method clear

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

Source from the content-addressed store, hash-verified

1370 self.data.remove(item)
1371
1372 def clear(self):
1373 self.data.clear()
1374
1375 def copy(self):
1376 return self.__class__(self)

Callers 1

test_implementationMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by 1

test_implementationMethod · 0.76