MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear

Method clear

Lib/mailbox.py:143–146  ·  view source on GitHub ↗

Delete all messages.

(self)

Source from the content-addressed store, hash-verified

141 raise NotImplementedError('Method must be implemented by subclass')
142
143 def clear(self):
144 """Delete all messages."""
145 for key in self.keys():
146 self.discard(key)
147
148 def pop(self, key, default=None):
149 """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