Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1919,12 +1919,6 @@ sequences, it should iterate through the values.
indexes to allow proper detection of the end of the sequence.


.. method:: object.__missing__(self, key)

Called by :class:`dict`\ .\ :meth:`__getitem__` to implement ``self[key]`` for dict subclasses
when key is not in the dictionary.


.. method:: object.__setitem__(self, key, value)

Called to implement assignment to ``self[key]``. Same note as for
Expand All @@ -1943,6 +1937,12 @@ sequences, it should iterate through the values.
values as for the :meth:`__getitem__` method.


.. method:: object.__missing__(self, key)

Called by :class:`dict`\ .\ :meth:`__getitem__` to implement ``self[key]`` for dict subclasses
when key is not in the dictionary.


.. method:: object.__iter__(self)

This method is called when an iterator is required for a container. This method
Expand Down