Cross-version extension modules?

Peter Astrand peter at
Wed Jan 28 10:40:07 CET 2004

If I build a extension module with Python 2.2 and then loads it with 2.3, 
I get:

RuntimeWarning: Python C API version mismatch for module _foo: This
Python has API version 1012, module _foo has version 1011.

How fatal is this? Is it safe to use the module anyway? If not, is it
possible to build the module differently, so that it actually is safe to
use it with different versions of Python?

Peter Åstrand
Teknikringen 3		Phone: +46-13-21 46 00
583 30 Linköping

More information about the Python-list mailing list