This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyMem_Resize docs don't specify that it modifies an argument
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: agthorr, georg.brandl
Priority: normal Keywords:

Created on 2007-02-24 21:09 by agthorr, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg31331 - (view) Author: Daniel Stutzbach (agthorr) Date: 2007-02-24 21:09
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."
msg31332 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-02 20:30
Fixed in rev. 54088, 54089 (2.5).
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44610
2007-02-24 21:09:20agthorrcreate