summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-29 07:18:17 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-29 07:18:17 (GMT)
commit457501bf20a43b51dc14bc8106f1ee6fadd44727 (patch)
treea76054244dbedb4fbb3413ccc5c27d743785a375
parentabb34fe9f3e9a1d4fe2bedee315e360fbf0b2ce5 (diff)
downloadcpython-457501bf20a43b51dc14bc8106f1ee6fadd44727.zip
cpython-457501bf20a43b51dc14bc8106f1ee6fadd44727.tar.gz
cpython-457501bf20a43b51dc14bc8106f1ee6fadd44727.tar.bz2
Two fixes in bytearray docs.
-rw-r--r--Doc/c-api/bytearray.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/c-api/bytearray.rst b/Doc/c-api/bytearray.rst
index 1b0f377..674a240 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)