[Pyrex] Pyrex generates broken code for "Z = X or Y"

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Wed Mar 29 21:42:38 CEST 2006


Stefan Behnel wrote:
> I used the following statement in Pyrex 0.9.3.1 (patched, but shouldn't make a
> difference).
> 
> cdef class XSLTContext:
>     cdef object _extension_elements
>     def __init__(self, namespaces, extensions, elements):
>         self._extension_elements = elements or {}

Ah, I understand. It was the signature change I did that removed the exception
that this code block triggers. It then generated broken code.

So the bug is not in the code generator but in the parser that accepts the
above statement which the generator can't handle.

Stefan



More information about the Pyrex mailing list