gh-107689: Add docstring to the ctypes array object by kostyafarber · Pull Request #107697 · python/cpython
PyDoc_STRVAR(array_doc, "Abstract base class for arrays.\n" "\n" "The recommended way to create concrete array types is by multiplying any\n" "ctypes data type with a non-negative integer. Alternatively, you can subclass\n" "this type and define _length_ and _type_ class variables. Array elements can\n" "be read and written using standard subscript and slice accesses for slice\n" "reads, the resulting object is not itself an Array." );
PyTypeObject PyCArray_Type = { PyVarObject_HEAD_INIT(NULL, 0) "_ctypes.Array",