From: Georg Brandl Date: Thu, 29 May 2008 07:18:17 +0000 (+0000) Subject: Two fixes in bytearray docs. X-Git-Tag: v2.6b1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=457501bf20a43b51dc14bc8106f1ee6fadd44727;p=python Two fixes in bytearray docs. --- diff --git a/Doc/c-api/bytearray.rst b/Doc/c-api/bytearray.rst index 1b0f3776aa..674a240a58 100644 --- a/Doc/c-api/bytearray.rst +++ b/Doc/c-api/bytearray.rst @@ -7,10 +7,12 @@ Byte Array Objects .. index:: object: bytearray +.. versionadded:: 2.6 + .. ctype:: PyByteArrayObject - This subtype of :ctype:`PyObject` represents a Python string object. + This subtype of :ctype:`PyObject` represents a Python bytearray object. .. cvar:: PyTypeObject PyByteArray_Type @@ -36,6 +38,8 @@ Byte Array Objects Return a new bytearray object from any object, *o*, that implements the buffer protocol. + .. XXX expand about the buffer protocol, at least somewhere + .. cfunction:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)