Commit ef4cae42 authored by Joon Ro's avatar Joon Ro

changed file order in Sharing C Functions example

This order looks more logical, easier to read.
parent 34249751
......@@ -165,6 +165,11 @@ example,:
cdef float cube(float)
:file:`volume.pyx`::
cdef float cube(float x):
return x * x * x
:file:`spammery.pyx`::
from volume cimport cube
......@@ -177,11 +182,6 @@ example,:
menu("Main course", 3)
menu("Dessert", 2)
:file:`volume.pyx`::
cdef float cube(float x):
return x * x * x
.. note::
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