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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
71f29c9e
Commit
71f29c9e
authored
Aug 23, 2018
by
Dr Alex Meakins
Committed by
GitHub
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes to language and mark-up.
parent
7433684f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
docs/src/userguide/language_basics.rst
docs/src/userguide/language_basics.rst
+4
-3
No files found.
docs/src/userguide/language_basics.rst
View file @
71f29c9e
...
...
@@ -149,11 +149,12 @@ respectively, as statically typing variables with these Python
types has zero advantages.
Cython provides an accelerated and typed equivalent of a Python tuple.
A ``ctuple`` is assembled from any valid C types
, f
or example::
A ``ctuple`` is assembled from any valid C types
. F
or example::
cdef (double, int) bar
They can be used like a Python tuple, including as function arguments and as return types.
They can be used efficient alternatives to Python tuples, including in
function definitions.
While these C types can be vastly faster, they have C semantics.
Specifically, the integer types overflow
...
...
@@ -215,7 +216,7 @@ using normal C declaration syntax. For example,::
cdef int eggs(unsigned long l, float f):
...
''ctuples''
may also be used::
``ctuples``
may also be used::
cdef (int, float) chips((long, long, double) t):
...
...
...
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