parameters: (self, key, message)
docstring: Replace the keyed message; raise KeyError if it doesn't exist.
docstring_summary: Replace the keyed message; raise KeyError if it doesn't exist.
docstring_tokens: Replace the keyed message ; raise KeyError if it doesn t exist .
function: def __setitem__(self, key, message):
          """Replace the keyed message; raise KeyError if it doesn't exist."""
          _singlefileMailbox.__setitem__(self, key, message)
          if isinstance(message, BabylMessage):
              self._labels[key] = message.get_labels()
function_tokens: def __setitem__ ( self , key , message ) : _singlefileMailbox . __setitem__ ( self , key , message ) if isinstance ( message , BabylMessage ) : self . _labels [ key ] = message . get_labels ( )