Kaydet (Commit) e17d5860 authored tarafından Georg Brandl's avatar Georg Brandl

#4983: clarify what "byte sequence" is.

üst 64150bc6
...@@ -594,16 +594,17 @@ generator object) supplying the :meth:`__iter__` and :meth:`__next__` methods. ...@@ -594,16 +594,17 @@ generator object) supplying the :meth:`__iter__` and :meth:`__next__` methods.
Sequence Types --- :class:`str`, :class:`bytes`, :class:`bytearray`, :class:`list`, :class:`tuple`, :class:`range` Sequence Types --- :class:`str`, :class:`bytes`, :class:`bytearray`, :class:`list`, :class:`tuple`, :class:`range`
================================================================================================================== ==================================================================================================================
There are six sequence types: strings, byte sequences, byte arrays, lists, There are six sequence types: strings, byte sequences (:class:`bytes` objects),
tuples, and range objects. (For other containers see the built-in byte arrays (:class:`bytearray` objects), lists, tuples, and range objects.
:class:`dict`, :class:`list`, :class:`set`, and :class:`tuple` classes, and the
:mod:`collections` module.) For other containers see the built-in :class:`dict`, :class:`list`,
:class:`set`, and :class:`tuple` classes, and the :mod:`collections` module.
.. index:: .. index::
object: sequence object: sequence
object: string object: string
object: bytes object: bytes
object: buffer object: bytearray
object: tuple object: tuple
object: list object: list
object: range object: range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment