[Numpy-discussion] profiling line by line
Fri Sep 19 04:26:42 CDT 2008
On Fri, Sep 19, 2008 at 03:33, Robert Cimrman <firstname.lastname@example.org> wrote:
> I have Python 2.4.4
> in "pyconfig.h"
> #define HAVE_LONG_LONG 1
> in "pyport.h":
> #ifdef HAVE_LONG_LONG
> #ifndef PY_LONG_LONG
> #define PY_LONG_LONG long long
> #endif /* HAVE_LONG_LONG */
> so it seems compatible with 'ctypedef long long PY_LONG_LONG'
Ah, found it. T_LONGLONG is a #define from structmember.h which is
used to describe the types of attributes. Apparently, this was not
added until Python 2.5. That particular member didn't actually need to
be long long, so I've fixed that.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion