compile time constant to differentiate 1.5.2 from 1.5.1?

Fredrik Lundh fredrik at pythonware.com
Wed Dec 1 03:04:16 EST 1999


Dale Nagata <dnagata at creo.com> wrote:
> Does anyone know what compile time macros can be used
> to detect whether I'm compiling against 1.5.2 or 1.5.1?
> 
> I searched through the headers in a 1.5.1 distribution
> and didn't see any obvious version identification macros.
> 
> I would like to be able to build a particular package (CXX)
> which is sensitive to changes in the type object internals 
> between 1.5.1 and 1.5.2.

PYTHON_API_VERSION

(see Include/modsupport.h for details)

</F>





More information about the Python-list mailing list