Skip to content

Commit 27b53a0

Browse files
committed
Remove sort() from the common sequence methods in the data model
1 parent e2c038f commit 27b53a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,8 +3145,7 @@ objects. The :mod:`collections.abc` module provides a
31453145
Mutable sequences should provide methods :meth:`~sequence.append`,
31463146
:meth:`~sequence.count`, :meth:`~sequence.index`, :meth:`~sequence.extend`,
31473147
:meth:`~sequence.insert`, :meth:`~sequence.pop`, :meth:`~sequence.remove`,
3148-
:meth:`~sequence.reverse` and :meth:`~sequence.sort`,
3149-
like Python standard :class:`list` objects.
3148+
and :meth:`~sequence.reverse`, like Python standard :class:`list` objects.
31503149
Finally, sequence types should implement addition (meaning concatenation) and
31513150
multiplication (meaning repetition) by defining the methods
31523151
:meth:`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object.__iadd__`,

0 commit comments

Comments
 (0)