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
Boxiang Sun
cython
Commits
cfdb3685
Commit
cfdb3685
authored
Nov 27, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better M-dash (Jonas)
parent
00cc5636
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/quickstart/cythonize.rst
src/quickstart/cythonize.rst
+1
-1
src/tutorial/pxd_files.rst
src/tutorial/pxd_files.rst
+1
-1
No files found.
src/quickstart/cythonize.rst
View file @
cfdb3685
...
@@ -71,7 +71,7 @@ This results in a 4 times speedup over the pure Python version.
...
@@ -71,7 +71,7 @@ This results in a 4 times speedup over the pure Python version.
Typing Functions
Typing Functions
----------------
----------------
Python function calls can be expensive
--
in Cython doubly so because
Python function calls can be expensive
--
in Cython doubly so because
one might need to convert to and from Python objects to do the call.
one might need to convert to and from Python objects to do the call.
In our example above, the argument is assumed to be a C double both inside f()
In our example above, the argument is assumed to be a C double both inside f()
and in the call to it, yet a Python ``float`` object must be constructed around the
and in the call to it, yet a Python ``float`` object must be constructed around the
...
...
src/tutorial/pxd_files.rst
View file @
cfdb3685
...
@@ -2,7 +2,7 @@ pxd files
...
@@ -2,7 +2,7 @@ pxd files
=========
=========
In addition to the ``.pyx`` source files, Cython uses ``.pxd`` files
In addition to the ``.pyx`` source files, Cython uses ``.pxd`` files
which work like C header files
--
they contain Cython declarations
which work like C header files
--
they contain Cython declarations
(and sometimes code sections) which are only meant for inclusion by
(and sometimes code sections) which are only meant for inclusion by
Cython modules. A ``pxd`` file is imported into a ``pyx`` module by
Cython modules. A ``pxd`` file is imported into a ``pyx`` module by
using the ``cimport`` keyword.
using the ``cimport`` keyword.
...
...
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