File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,14 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
161161 If it is ``0 ``, :c:member: `~Py_buffer.buf ` points to a single item representing
162162 a scalar. In this case, :c:member: `~Py_buffer.shape `, :c:member: `~Py_buffer.strides `
163163 and :c:member: `~Py_buffer.suboffsets ` MUST be ``NULL ``.
164+ The maximum number of dimensions is given by :c:macro: `PyBUF_MAX_NDIM `.
164165
165- The macro :c:macro: `PyBUF_MAX_NDIM ` limits the maximum number of dimensions
166- to 64. Exporters MUST respect this limit, consumers of multi-dimensional
167- buffers SHOULD be able to handle up to :c:macro: `PyBUF_MAX_NDIM ` dimensions.
166+ .. :c:macro:: PyBUF_MAX_NDIM
167+
168+ The maximum number of dimensions the memory represents.
169+ Exporters MUST respect this limit, consumers of multi-dimensional
170+ buffers SHOULD be able to handle up to :c:macro:`!PyBUF_MAX_NDIM` dimensions.
171+ Currently set to 64.
168172
169173 .. c :member :: Py_ssize_t *shape
170174
You can’t perform that action at this time.
0 commit comments