Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
4d8fd39f
Commit
4d8fd39f
authored
Nov 10, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix caviats section.
parent
63a5de63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/tutorial/caveats.rst
src/tutorial/caveats.rst
+4
-3
No files found.
src/tutorial/caveats.rst
View file @
4d8fd39f
...
@@ -7,9 +7,10 @@ for Python users, so this list may change in the future.
...
@@ -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.
- ``10**-2 == 0``, instead of ``0.01`` like in Python.
- Given two typed ``int`` variables ``a`` and ``b``, ``a % b`` has the
- Given two typed ``int`` variables ``a`` and ``b``, ``a % b`` has the
same sign as the first argument (following C semantics) rather then
same sign as the second argument (following Python semantics) rather then
having the same sign as the second (as in Python). This will change
having the same sign as the first (as in C). The C behavior can be
in Cython 0.12.
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;
- Care is needed with unsigned types. ``cdef unsigned n = 10;
print(range(-n, n))`` will print an empty list, since ``-n`` wraps
print(range(-n, n))`` will print an empty list, since ``-n`` wraps
around to a large positive integer prior to being passed to the
around to a large positive integer prior to being passed to the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment