Issue 1668036: PyMem_Resize docs don't specify that it modifies an argument (original) (raw)
PyMem_Resize is defined as follows:
#define PyMem_Resize(p, type, n)
( (p) = (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
The docs for PyMem_Resize don't specify that it modifies p. I suggest adding the following sentence:
"On return, p will point to the new memory area, or NULL in the event of failure."