A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/030342.html below:

PyMem_MALLOC (was [Python-Dev] Snake farm)

PyMem_MALLOC (was [Python-Dev] Snake farm) PyMem_MALLOC (was [Python-Dev] Snake farm)Martin v. Loewis martin@v.loewis.de
22 Nov 2002 19:23:39 +0100
Marc Recht <marc@informatik.uni-bremen.de> writes:

> What about changing
> PyMem_MALLOC malloc
> to
> #define PyMem_MALLOC(n)     n ? malloc(n) : NULL

No. Python requires that PyMem_MALLOC(0) returns a valid memory pointer
(although I'm not certain where exactly it requires that).

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4