[issue8118] PYTHON_API_VERSION needs to be bumped?

Ronald Oussoren report at bugs.python.org
Thu Mar 18 10:34:29 CET 2010


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

But should PYTHON_API_VERSION be increased for the 2.7 release?  

I think it should because of the binary incompatible differences between 2.5 and 2.6. In a perfect world that would have resulted in an increase of PYTHON_API_VERSION for the 2.6.0 release, but that's something that slipped through the cracks. By increasing the value in 2.7.0 users that switch from 2.5 to 2.7 get warnings that should help then find why their compiled extension stopped working (users migrating from 2.6 to 2.7 would also get the warning while it is technically not necessary, but that's harmless because you shouldn't reuse extensions  anyway).

The primary reason for posting this issue was that a colleague ran into this problem: he compiled an extension on a machine with python2.5 and ran the result on a machine with python2.6 and that misteriously didn't work  (in his defense: he thought that both machines ran the same version of python).  A warning at import would have made it more clear what was going wrong.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8118>
_______________________________________


More information about the Python-bugs-list mailing list