parameters: (self)
docstring: Delete an arbitrary (key, message) pair and return it.
docstring_summary: Delete an arbitrary (key, message) pair and return it.
docstring_tokens: Delete an arbitrary ( key message ) pair and return it .
function: 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')
function_tokens: 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' )