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

Method clear

Lib/mailbox.py:150–153  ·  view source on GitHub ↗

Delete all messages.

(self)

Source from the content-addressed store, hash-verified

148 raise NotImplementedError('Method must be implemented by subclass')
149
150 def clear(self):
151 """Delete all messages."""
152 for key in self.keys():
153 self.discard(key)
154
155 def pop(self, key, default=None):
156 """Delete the keyed message and return it, or default."""

Callers 1

test_notimplementedMethod · 0.95

Calls 2

keysMethod · 0.95
discardMethod · 0.95

Tested by 1

test_notimplementedMethod · 0.76