Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ff4ee commit cb3ff44Copy full SHA for cb3ff44
1 file changed
Doc/glossary.rst
@@ -763,6 +763,14 @@ Glossary
763
mapping rather than a sequence because the lookups use arbitrary
764
:term:`immutable` keys rather than integers.
765
766
+ The :class:`collections.abc.Sequence` abstract base class
767
+ defines a much richer interface that goes beyond just
768
+ :meth:`__getitem__` and :meth:`__len__`, adding :meth:`count`,
769
+ :meth:`index`, :meth:`__contains__`, and
770
+ :meth:`__reversed__`. Types that implement this expanded
771
+ interface can be registered explicitly using
772
+ :func:`~abc.register`.
773
+
774
slice
775
An object usually containing a portion of a :term:`sequence`. A slice is
776
created using the subscript notation, ``[]`` with colons between numbers
0 commit comments