Skip to content

Commit 7a95cc9

Browse files
committed
Add more docs
1 parent b8b2d20 commit 7a95cc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/reference/datamodel.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,10 @@ Slice objects are used to represent slices for
18241824
:meth:`~object.__getitem__`
18251825
methods. They are also created by the built-in :func:`slice` function.
18261826

1827+
.. versionadded:: 3.15
1828+
1829+
:class:`slice` now supports :ref:`subscription`.
1830+
18271831
.. index::
18281832
single: start (slice object attribute)
18291833
single: stop (slice object attribute)

0 commit comments

Comments
 (0)