Python 3000 C API Changes

Stefan Behnel stefan_ml at behnel.de
Sun Aug 24 07:07:16 CEST 2008


rahul wrote:
> I am trying to find out what Python C APIs are changing from Python
> 2.5 to Python 3.0 but there does not seem to be a single list of
> changes (or at least google is not finding one).
> If someone knows about where I should look, please let me know.

Check out what Cython does in its module header, method
"generate_module_preamble". It has an (obviously incomplete) list of the most
important adaptations to write portable code for Py2.3 to 3.0.

http://hg.cython.org/cython-devel/file/tip/Cython/Compiler/ModuleNode.py

Stefan



More information about the Python-list mailing list