Commit f8b6ad84 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge branch 'master' of https://github.com/gotgenes/cython into gotgenes-master

parents 664dc7c8 da8fa395
...@@ -95,7 +95,7 @@ Fibonacci Fun ...@@ -95,7 +95,7 @@ Fibonacci Fun
From the official Python tutorial a simple fibonacci function is defined as: From the official Python tutorial a simple fibonacci function is defined as:
.. literalinclude:: ../examples/tutorial/fib1/fib.pyx .. literalinclude:: ../../examples/tutorial/fib1/fib.pyx
Now following the steps for the Hello World example we first rename the file Now following the steps for the Hello World example we first rename the file
to have a `.pyx` extension, lets say :file:`fib.pyx`, then we create the to have a `.pyx` extension, lets say :file:`fib.pyx`, then we create the
...@@ -103,7 +103,7 @@ to have a `.pyx` extension, lets say :file:`fib.pyx`, then we create the ...@@ -103,7 +103,7 @@ to have a `.pyx` extension, lets say :file:`fib.pyx`, then we create the
that you need to change is the name of the Cython filename, and the resulting that you need to change is the name of the Cython filename, and the resulting
module name, doing this we have: module name, doing this we have:
.. literalinclude:: ../examples/tutorial/fib1/setup.py .. literalinclude:: ../../examples/tutorial/fib1/setup.py
Build the extension with the same command used for the helloworld.pyx: Build the extension with the same command used for the helloworld.pyx:
...@@ -126,7 +126,7 @@ them as a Python list. ...@@ -126,7 +126,7 @@ them as a Python list.
:file:`primes.pyx`: :file:`primes.pyx`:
.. literalinclude:: ../examples/tutorial/primes/primes.pyx .. literalinclude:: ../../examples/tutorial/primes/primes.pyx
:linenos: :linenos:
You'll see that it starts out just like a normal Python function definition, You'll see that it starts out just like a normal Python function definition,
......
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