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_Realloc docs don't specifiy out-of-mem behavior
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:01 by agthorr, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg31329 - (view) Author: Daniel Stutzbach (agthorr) Date: 2007-02-24 21:01
I suggest adding the following text to the documentation for PyMem_Realloc:

"If the request fails, PyMem_Realloc returns NULL and p remains a valid allocated pointer."

I dug into obmalloc.c to figure out the behavior.
msg31330 - (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: 44609
2007-02-24 21:01:20agthorrcreate