Extension objects in Python 1.5 and 2.2

Skip Montanaro skip at pobox.com
Thu Jun 13 03:31:49 EDT 2002


    Martin> How do I write extension objects so that they work in both
    Martin> Python 1.5 and the 2.x series? 

Michael Hudson has been working on a new include file named pymemcompat.h.
Since it's only used for backward compatibility it's in the Misc directory.
You can grab it from CVS:

    http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/dist/src/Misc/pymemcompat.h

The idea is that you should be able to include it and program to the 2.3
memory api in code that runs under 1.5.2 or newer versions of the
interpreter.

-- 
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html







More information about the Python-list mailing list