PyDocs

Nav

Python Runtime Services

object.__delitem__

builtins

method of object
  • object.__delitem__(self, key)
Called to implement deletion of self[key]. Same note as for __getitem__(). This should only be implemented for mappings if the objects support removal of keys, or for sequences if elements can be removed from the sequence. The same exceptions should be raised for improper key values as for the __getitem__() method.
0 Examples
No examples for builtins/object.__delitem__.
See Also
No see-alsos for builtins/object.__delitem__
0 Notes
No notes for object.__delitem__