[Pyrex] int operations on enums fail with 0.9.5
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Feb 12 22:59:49 UTC 2007
Stefan Behnel wrote:
> Hi,
>
> in lxml, we use a couple of enums from libxml2 ...
> However, the | and & operations produce "invalid operand types" errors
That's a bug -- I'll fix it in the next release.
> "Type rules for enums tightened for compatibility with C++"
>
> May I ask why this was applied?
So that the generated code can be compiled as
C++ with -Wall and not generate any warnings.
But I hadn't intended it to be that restrictive.
--
Greg
More information about the Pyrex
mailing list