(self)
Delete an arbitrary (key, message) pair and return it.
Delete an arbitrary (key, message) pair and return it.
Delete an arbitrary ( key message ) pair and return it .
def popitem(self):
        """Delete an arbitrary (key, message) pair and return it."""
        for key in self.iterkeys():
            return (key, self.pop(key))     # This is only run once.
        else:
            raise KeyError('No messages in mailbox')
def popitem ( self ) : for key in self . iterkeys ( ) : return ( key , self . pop ( key ) ) # This is only run once. else : raise KeyError ( 'No messages in mailbox' )