[Python-Dev] [Python-checkins] cpython: Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array

Mark Dickinson dickinsm at gmail.com
Thu Sep 29 19:04:38 CEST 2011


On Thu, Sep 29, 2011 at 2:45 AM, Victor Stinner
<victor.stinner at haypocalc.com> wrote:
> I would like to suggest the opposite: move platform independdant macros from
> pyport.h to pymacro.h :-) Suggestions:
>  - Py_ARITHMETIC_RIGHT_SHIFT
>  - Py_FORCE_EXPANSION
>  - Py_SAFE_DOWNCAST

Not sure about the other two, but Py_ARITHMETIC_RIGHT_SHIFT is
definitely platform dependent, which is why it's in pyport.h in the
first place.

Mark


More information about the Python-Dev mailing list