From 7c530df0f0a30bce296c6ec8b6ef0fbc2ab28cb8 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 9 Oct 2010 11:21:08 -0700 Subject: [PATCH] Fix import -> cimport typo. --- src/tutorial/pxd_files.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. :: -- 2.26.2