2.6 版新增。
此实例的 PyTypeObject represents the Python bytearray type; it is the same object as bytearray 在 Python 层。
Return true if the object o is a bytearray object or an instance of a subtype of the bytearray type.
Return true if the object o is a bytearray object, but not an instance of a subtype of the bytearray type.
Return a new bytearray object from any object, o , that implements the buffer protocol.
Create a new bytearray object from string and its length, len . On failure, NULL 被返回。
Concat bytearrays a and b and return a new bytearray with the result.
Return the size of bytearray after checking for a NULL 指针。
Return the contents of bytearray as a char array after checking for a NULL 指针。
Resize the internal buffer of bytearray to len .
These macros trade safety for speed and they don’t check pointers.
Macro version of PyByteArray_AsString() .
Macro version of PyByteArray_Size() .