[Cython] Overflow semantics in pure Python mode
Stefan Behnel
stefan_ml at behnel.de
Thu Nov 6 14:14:10 CET 2008
Willem Broekema wrote:
> In Pure Python mode, code compiled (using annotations) to C should run
> equivalent to running (ignoring annotations) in the Python
> interpreter. That implies that a variable declared as cython.int may
> not rely on overflow behavior, as Python would automatically make a
> long object for such a result. And the same also holds for the other
> numeric types, from char to longlong. Right?
Yep, developers should avoid writing broken code. :)
Stefan
More information about the Cython-dev
mailing list