[Cython] [PATCH] Make __Pyx_ArgTypeTest() use "const char*" to suppress warning
Stefan Behnel
stefan_ml at behnel.de
Wed Sep 10 17:53:50 CEST 2008
Lisandro Dalcin wrote:
> On Wed, Sep 10, 2008 at 11:35 AM, Stefan Behnel <stefan_ml at behnel.de>
> wrote:
>> This specific case is easy to handle as we can replace
>> PyObject_GetAttrString() by the equivalent PyObject_GetAttr() call and
>> create the Python string ourselves (which would normally happen inside
>> of PyObject_GetAttrString).
>
> As a reminder, please use PyString_InternFromString() (or the py3k
> equivalent).
I considered doing that and rejected it as I do not see the gain in
re-re-building the Python string instead of creating it once. Why do you
think this is necessary?
Stefan
More information about the Cython-dev
mailing list