mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +08:00
#5130: replace "unicode" by "bytes" in examples for sequence types.
This commit is contained in:
parent
84753dee52
commit
2ae8ac2bfe
@ -484,7 +484,7 @@ Glossary
|
||||
indices via the :meth:`__getitem__` special method and defines a
|
||||
:meth:`len` method that returns the length of the sequence.
|
||||
Some built-in sequence types are :class:`list`, :class:`str`,
|
||||
:class:`tuple`, and :class:`unicode`. Note that :class:`dict` also
|
||||
:class:`tuple`, and :class:`bytes`. Note that :class:`dict` also
|
||||
supports :meth:`__getitem__` and :meth:`__len__`, but is considered a
|
||||
mapping rather than a sequence because the lookups use arbitrary
|
||||
:term:`immutable` keys rather than integers.
|
||||
|
Loading…
Reference in New Issue
Block a user