[Numpy-discussion] ScientificPython with NumPy

Konrad Hinsen konrad.hinsen at laposte.net
Thu Nov 30 03:44:22 CST 2006


On Nov 29, 2006, at 1:09, Travis Oliphant wrote:

> You can
>
> #define PY_SSIZE_T_MIN INT_MIN
> #define PY_SSIZE_T_MAX INT_MAX
>
> before including the NumPy header file and it will by-pass the typedef
> for Py_ssize_t.

Interesting. Is that a test that would work for distinguishing Python  
2.5 from its predecessors as well? In other words, is that a test  
that one could add to every header file to avoid problems? That's  
what I am looking for...

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen at cnrs-orleans.fr
---------------------------------------------------------------------




More information about the Numpy-discussion mailing list