This commit is contained in:
Ezio Melotti 2012-10-27 23:25:18 +03:00
parent edde409f60
commit 971ba4c817

View file

@ -2164,7 +2164,7 @@ they are always created by calling the constructor:
* Creating an empty instance: ``bytearray()`` * Creating an empty instance: ``bytearray()``
* Creating a zero-filled instance with a given length: ``bytearray(10)`` * Creating a zero-filled instance with a given length: ``bytearray(10)``
* From an iterable of integers: ``bytearray(range(20))`` * From an iterable of integers: ``bytearray(range(20))``
* Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!)`` * Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``
As bytearray objects are mutable, they support the As bytearray objects are mutable, they support the
:ref:`mutable <typesseq-mutable>` sequence operations in addition to the :ref:`mutable <typesseq-mutable>` sequence operations in addition to the