def pop(self, key, default=None):
        try:
            result = self[key]
        except KeyError:
            return default
        self.discard(key)
        return result
Delete the keyed message and return it, or default.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Mailbox.pop