Commit 457501bf authored by Georg Brandl's avatar Georg Brandl

Two fixes in bytearray docs.

parent abb34fe9
...@@ -7,10 +7,12 @@ Byte Array Objects ...@@ -7,10 +7,12 @@ Byte Array Objects
.. index:: object: bytearray .. index:: object: bytearray
.. versionadded:: 2.6
.. ctype:: PyByteArrayObject .. 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 .. cvar:: PyTypeObject PyByteArray_Type
...@@ -36,6 +38,8 @@ Byte Array Objects ...@@ -36,6 +38,8 @@ Byte Array Objects
Return a new bytearray object from any object, *o*, that implements the Return a new bytearray object from any object, *o*, that implements the
buffer protocol. buffer protocol.
.. XXX expand about the buffer protocol, at least somewhere
.. cfunction:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len) .. cfunction:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment