Commit 4d8fd39f authored by Robert Bradshaw's avatar Robert Bradshaw

Fix caviats section.

parent 63a5de63
......@@ -7,9 +7,10 @@ for Python users, so this list may change in the future.
- ``10**-2 == 0``, instead of ``0.01`` like in Python.
- Given two typed ``int`` variables ``a`` and ``b``, ``a % b`` has the
same sign as the first argument (following C semantics) rather then
having the same sign as the second (as in Python). This will change
in Cython 0.12.
same sign as the second argument (following Python semantics) rather then
having the same sign as the first (as in C). The C behavior can be
obtained, at some speed gain, by enabling the division directive.
(Versions prior to Cython 0.12. always followed C semantics.)
- Care is needed with unsigned types. ``cdef unsigned n = 10;
print(range(-n, n))`` will print an empty list, since ``-n`` wraps
around to a large positive integer prior to being passed to the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment