[issue8118] PYTHON_API_VERSION needs to be bumped?
Ronald Oussoren
report at bugs.python.org
Thu Mar 11 16:38:24 CET 2010
New submission from Ronald Oussoren <ronaldoussoren at mac.com>:
If I understand the code correct Python 2.6 has the same value for PYTHON_API_VERSION, even though extensions are not compatible.
In particular: when you compile an extension that uses PyInt_Check with python2.6 and load that extension with python 2.5 you will not get a version warning from Py_InitModule4 and you will also not get the right answers from PyInt_Check.
This due to PyType_FastSubclass (in python 2.6) which tests flags in the type structure that are not initiazed in 2.5. That is a change in the ABI and hence should be accompanied by increasing PYTHON_API_VERSION.
This is technically a bug in 2.6, but I'm not selecting that version in the list because increasing PYTHON_API_VERSION in 2.6.x would break existing installations when they upgrade.
----------
components: Extension Modules, Interpreter Core
messages: 100867
nosy: ronaldoussoren
priority: high
severity: normal
status: open
title: PYTHON_API_VERSION needs to be bumped?
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8118>
_______________________________________
More information about the Python-bugs-list
mailing list