Skip to content

Commit 33779d8

Browse files
committed
gh-145591: Name slicing special methods explicitly
1 parent 2750ee6 commit 33779d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3249,7 +3249,8 @@ through the object's keys; for sequences, it should iterate through the values.
32493249

32503250
.. note::
32513251

3252-
Slicing is done exclusively with the following three methods.
3252+
Slicing is handled by :meth:`!__getitem__`, :meth:`~object.__setitem__`,
3253+
and :meth:`~object.__delitem__`.
32533254
A call like ::
32543255

32553256
a[1:2] = b

0 commit comments

Comments
 (0)