File tree 1 file changed +7
-3
lines changed 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`.
161
161
If it is ``0 ``, :c:member: `~Py_buffer.buf ` points to a single item representing
162
162
a scalar. In this case, :c:member: `~Py_buffer.shape `, :c:member: `~Py_buffer.strides `
163
163
and :c:member: `~Py_buffer.suboffsets ` MUST be ``NULL ``.
164
+ The maximum number of dimensions is given by :c:macro: `PyBUF_MAX_NDIM `.
164
165
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.
168
172
169
173
.. c :member :: Py_ssize_t *shape
170
174
You can’t perform that action at this time.
0 commit comments