A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022305.html below:

[Python-Dev] Pymalloc and backward compatibility

[Python-Dev] Pymalloc and backward compatibility [Python-Dev] Pymalloc and backward compatibilityNeil Schemenauer nas@python.ca
Thu, 4 Apr 2002 07:25:06 -0800
Neil Schemenauer wrote:
> You can use a macro like this:
> 
>     #if PY_VERSION_HEX < 0x01060000
>     #define PyObject_New PyObject_NEW
>     #define PyObject_Del PyMem_DEL
>     #endif

I just realized that this may be unclear.  You don't _need_ to use the
above macro to make your code work across versions.  As long as you use
PyMem_DEL and not free() to deallocate objects the code will work.

  Neil




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