Two fixes in bytearray docs.

This commit is contained in:
Georg Brandl 2008-05-29 07:18:17 +00:00
parent abb34fe9f3
commit 457501bf20
1 changed files with 5 additions and 1 deletions

View File

@ -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)