Commit 266bb136 authored by robertwb's avatar robertwb

Merge pull request #60 from Gordin/master

Wrong Example in "Sharing Declarations Between Cython Modules"
parents f3f5cd7e 699bc1ec
...@@ -85,7 +85,7 @@ exactly parallels that of the normal Python import statement: ...@@ -85,7 +85,7 @@ exactly parallels that of the normal Python import statement:
<tt>&nbsp;&nbsp;&nbsp; print "%d oz spam, filler no. %d" % \</tt> <tt>&nbsp;&nbsp;&nbsp; print "%d oz spam, filler no. %d" % \</tt>
<br> <br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (d-&gt;oz_of_spam, <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (d-&gt;oz_of_spam,
d-&gt;otherstuff)</tt></p> d-&gt;filler)</tt></p>
</td> </td>
</tr> </tr>
</tbody> </table> </tbody> </table>
......
...@@ -96,7 +96,7 @@ uses it. ...@@ -96,7 +96,7 @@ uses it.
def serve(): def serve():
cdef spamdish d cdef spamdish d
prepare(&d) prepare(&d)
print "%d oz spam, filler no. %d" % (d.oz_of_spam, d.otherstuff) print "%d oz spam, filler no. %d" % (d.oz_of_spam, d.filler)
It is important to understand that the :keyword:`cimport` statement can only It is important to understand that the :keyword:`cimport` statement can only
be used to import C data types, C functions and variables, and extension be used to import C data types, C functions and variables, and extension
......
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