Commit b804af9a authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #161 from joonro/patch-3

changed file order in Sharing C Functions example
parents 34249751 ef4cae42
...@@ -165,6 +165,11 @@ example,: ...@@ -165,6 +165,11 @@ example,:
cdef float cube(float) cdef float cube(float)
:file:`volume.pyx`::
cdef float cube(float x):
return x * x * x
:file:`spammery.pyx`:: :file:`spammery.pyx`::
from volume cimport cube from volume cimport cube
...@@ -177,11 +182,6 @@ example,: ...@@ -177,11 +182,6 @@ example,:
menu("Main course", 3) menu("Main course", 3)
menu("Dessert", 2) menu("Dessert", 2)
:file:`volume.pyx`::
cdef float cube(float x):
return x * x * x
.. note:: .. note::
When a module exports a C function in this way, an object appears in the When a module exports a C function in this way, an object appears in 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