How to make a C extension module backwards compatible?

Martin v. Löwis loewis at informatik.hu-berlin.de
Wed Sep 18 02:50:14 EDT 2002


Andrew McNamara <andrewm at object-craft.com.au> writes:

> That's a good question - this is more of a learning exercise than a
> project with a real need. I guess the most useful attribute would be
> sub-classing.

I see. In that case, there is no way around ifdefs - the type object
has grown extra fields, which the compiler will complain about if you
are using an older version of Python.

Regards,
Martin



More information about the Python-list mailing list