[Python-checkins] r42382 - in python/trunk: Include/abstract.h Include/bufferobject.h Include/cStringIO.h Include/ceval.h Include/dictobject.h Include/intobject.h Include/listobject.h Include/longintrepr.h Include/longobject.h Include/marshal.h I

M.-A. Lemburg mal at egenix.com
Thu Feb 16 12:32:38 CET 2006


Thomas Wouters wrote:
> On Thu, Feb 16, 2006 at 11:31:45AM +0100, M.-A. Lemburg wrote:
> 
>>> modsupport.h: Don't we want to bump the version?
>>>
>>>  #define PYTHON_API_VERSION 1012
>>>  #define PYTHON_API_STRING "1012"
> 
>> Not only that: we need to make sure that extensions compiled
>> for the new API version cannot be imported in older Python
>> versions on 64-bit platforms.
> 
> The Py_InitModule4_64 hack prevents that:
> 
> Include/modsupport.h:94:
> 
> #if SIZEOF_SIZE_T != SIZEOF_INT
> /* On a 64-bit system, rename the Py_InitModule4 so that 2.4
>    modules cannot get loaded into a 2.5 interpreter */
> #define Py_InitModule4 Py_InitModule4_64
> #endif

Ah, I didn't see that. Thanks.

>> Dito for trying to import extensions compiled against an older API version
>> into Python 2.5.
> 
> And that, too (if you mean 'on 64-bit platforms'; if you don't, I don't know
> why we should try and prevent that.)

Yes, I meant 64-bit platforms.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 16 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the Python-checkins mailing list