[Python-Dev] Problem with the memory docs

Martin v. Loewis martin@v.loewis.de
04 Apr 2002 21:54:52 +0200


"Fredrik Lundh" <fredrik@pythonware.com> writes:

> umm.  I have to admit that it's rather ugly, but I'm pretty sure the
> following guarantees that requesting zero bytes will never return a
> NULL pointer:

As Tim explained earlier, this implementation violates the ISO C
requirement that different calls of malloc return different pointers.

Regards,
Martin