numpy  2.0.0
src/multiarray/buffer.h File Reference

Go to the source code of this file.

Functions

NPY_NO_EXPORT void _array_dealloc_buffer_info (PyArrayObject *self)
NPY_NO_EXPORT PyArray_Descr_descriptor_from_pep3118_format (char *s)

Variables

NPY_NO_EXPORT PyBufferProcs array_as_buffer

Function Documentation

NOTE: for backward compatibility (esp. with PyArg_ParseTuple("s#", ...)) we do not define bf_releasebuffer at all.
Instead, any extra data allocated with the buffer is released only in array_dealloc.
Ensuring that the buffer stays in place is taken care by refcounting; ndarrays do not reallocate if there are references to them, and a buffer view holds one reference.
This function may be called when processing an exception -- we need to stash the error state to avoid confusing PyDict
Fast path
Strip whitespace, except from field names
Convert

Variable Documentation

System Message: ERROR/3 (<string>, line 1) Document or section may not begin with a transition.

System Message: ERROR/3 (<string>, line 1) Document may not end with a transition.