[Pyrex] The "++" operator gets stripped out (as in "++x")
John Machin
sjmachin at lexicon.net
Sun Jan 6 20:19:47 CET 2008
Dan Gindikin wrote:
> Hi,
>
> It appears the "++" prefix operator gets silently stripped out. If you have the
> following,
>
> cdef int x
> x=0
> ++x # in the .c file, this is just "__pyx_v_x"
> print x
>
> a "0" is printed.
>
> This is with version 0.9.6.4
>
>
There is no such thing as a "++" prefix operator in Python and Pyrex
(and Pyrex doesn't support x += 1). You have two "+" prefix operators,
with the expected result.
More information about the Pyrex
mailing list