Commit 699bc1ec authored by Gordin's avatar Gordin

fixed wrong example-code

parent f3f5cd7e
...@@ -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>
...@@ -198,4 +198,4 @@ need to <tt>import Shrubbing</tt>.</li> ...@@ -198,4 +198,4 @@ need to <tt>import Shrubbing</tt>.</li>
<hr width="100%">Back to the <a href="overview.html">Language Overview</a> <hr width="100%">Back to the <a href="overview.html">Language Overview</a>
<br> <br>
<br> <br>
</body></html> </body></html>
\ No newline at end of file
...@@ -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