[Python-Dev] [Python-checkins] cpython: =?utf-8?q?Enhance=09Py=5FARRAY=5FLENGTH?=(): fail at build time if the argument is not an array

Victor Stinner victor.stinner at haypocalc.com
Sat Oct 1 20:02:23 CEST 2011


Le samedi 1 octobre 2011 14:52:03, vous avez écrit :
> >> Do we really need a new file? Why not pyport.h where other compiler
> >> stuff goes?
> > 
> > I'm not sure that pyport.h is the right place to add Py_MIN, Py_MAX,
> > Py_ARRAY_LENGTH. pyport.h looks to be related to all things specific to
> > the platform like INT_MAX, Py_VA_COPY, ... pymacro.h contains platform
> > independant macros.
> 
> I'm -1 on additional header files as well. If no other reasonable place
> is found, Python.h is still available.

I moved them to pymacro.h because I don't consider Python.h as a reasonable 
place for them.


Victor


More information about the Python-Dev mailing list