[Cython] [PATCH] Make __Pyx_ArgTypeTest() use "const char*" to suppress warning
Ondrej Certik
ondrej at certik.cz
Mon Sep 8 17:17:57 CEST 2008
On Mon, Sep 8, 2008 at 5:12 PM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> In Python 2.3 and 2.4 we have this:
>
> PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, char *);
>
> In Python 2.5 and above, we have this:
>
> PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, const char *);
>
>
> So pehaps we need the a define of inline function
> __Pyx_PyObject_GetAttr() that do the special-case according to the
> Python version.
Either way is fine. Clearly the current state, that it prints the
warnings is a bug, so it should be fixed (either way).
Ondrej
More information about the Cython-dev
mailing list