From: Robert Bradshaw Date: Sat, 9 Oct 2010 18:21:08 +0000 (-0700) Subject: Fix import -> cimport typo. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c530df0f0a30bce296c6ec8b6ef0fbc2ab28cb8;p=cython.git Fix import -> cimport typo. --- diff --git a/src/tutorial/pxd_files.rst b/src/tutorial/pxd_files.rst index 1a89136b..fc85f9dc 100644 --- a/src/tutorial/pxd_files.rst +++ b/src/tutorial/pxd_files.rst @@ -26,7 +26,7 @@ In our integration example, we might break it up into ``pxd`` files like this: 1. Add a ``cmath.pxd`` function which defines the C functions available from the C ``math.h`` header file, like ``sin``. Then one would simply do - ``from cmath import sin`` in ``integrate.pyx``. + ``from cmath cimport sin`` in ``integrate.pyx``. 2. Add a ``integrate.pxd`` so that other modules written in Cython can define fast custom functions to integrate. ::