How to make a C extension module backwards compatible?

Martin v. Löwis loewis at
Wed Sep 18 08:50:14 CEST 2002

Andrew McNamara <andrewm at> 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.


More information about the Python-list mailing list