MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / clear

Method clear

tools/python-3.11.9-amd64/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

nothing calls this directly

Calls 2

keysMethod · 0.95
discardMethod · 0.95

Tested by

no test coverage detected