From: Antoine Pitrou Date: Sat, 20 Nov 2010 19:36:05 +0000 (+0000) Subject: In 3.x, bytearray is akin to bytes, not str. X-Git-Tag: v3.2b1~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b85b3afad05265cffbdd9902cdfdc9231db32c30;p=thirdparty%2FPython%2Fcpython.git In 3.x, bytearray is akin to bytes, not str. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 205155df3b1f..7e83a5d498b4 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -70,7 +70,7 @@ are always available. They are listed here in alphabetical order. Return a new array of bytes. The :class:`bytearray` type is a mutable sequence of integers in the range 0 <= x < 256. It has most of the usual methods of mutable sequences, described in :ref:`typesseq-mutable`, as well - as most methods that the :class:`str` type has, see :ref:`bytes-methods`. + as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`. The optional *source* parameter can be used to initialize the array in a few different ways: