Extension objects in Python 1.5 and 2.2
mwh at python.net
Thu Jun 13 05:20:53 EDT 2002
Martin Sjögren <martin at strakt.com> writes:
> On Thu, Jun 13, 2002 at 02:31:49AM -0500, Skip Montanaro wrote:
> > 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.
> Cool. Thanks a lot!
Pleasure! Be sure to complain if it doesn't work, won't you?
An encyclopedia is about being as accurate as it can, not being
evenly misinformed. -- Coby Beck, comp.lang.lisp
More information about the Python-list