[Pyrex] More on getting rid of Pyrex warnings
Stefan Behnel
stefan_ml at behnel.de
Fri Mar 2 08:48:20 UTC 2007
Greg Ewing wrote:
> Francesc Altet wrote:
>
>> src/tableExtension.c:2812: warning:
>> ‘__pyx_doc_14tableExtension_3Row___call__’ defined but not used
>>
>> i.e. it seems that special methods gives warnings. Any hint to remove
>> them?
>
> This seems to be because you've given them docstrings.
> There's currently no way to attach docstrings to a
> special method, so Pyrex effectively ignores them,
> but it seems that it generates code for them anyway
> and then doesn't use it.
A while ago, Eric Huss sent in a patch that might already fix this:
http://permalink.gmane.org/gmane.comp.python.pyrex/1833
It's included in lxml's Pyrex version.
Regards,
Stefan
More information about the Pyrex
mailing list