Commit f3e871d4 authored by scoder's avatar scoder

Merge pull request #442 from jwilk/spelling

Fix typos.
parents 431f8869 7a1aed91
...@@ -102,7 +102,7 @@ Properties ...@@ -102,7 +102,7 @@ Properties
* The ``__get__()``, ``__set__()``, and ``__del__()`` methods are all optional. * The ``__get__()``, ``__set__()``, and ``__del__()`` methods are all optional.
* If they are ommitted, An exception is raised when an access attempt is made. * If they are omitted, An exception is raised when an access attempt is made.
* Below, is a full example that defines a property which can.. * Below, is a full example that defines a property which can..
...@@ -364,7 +364,7 @@ Extension Types and None ...@@ -364,7 +364,7 @@ Extension Types and None
* When accessing an extension type's C-attributes, **make sure** it is not ``None``. * When accessing an extension type's C-attributes, **make sure** it is not ``None``.
* Cython does not check this for reasons of efficency. * Cython does not check this for reasons of efficiency.
* Be very aware of exposing Python functions that take extension types as arguments:: * Be very aware of exposing Python functions that take extension types as arguments::
...@@ -418,7 +418,7 @@ External and Public Types ...@@ -418,7 +418,7 @@ External and Public Types
Public Public
====== ======
* When an extention type is declared ``public``, Cython will generate a C-header (".h") file. * When an extension type is declared ``public``, Cython will generate a C-header (".h") file.
* The header file will contain the declarations for it's **object-struct** and it's **type-object**. * The header file will contain the declarations for it's **object-struct** and it's **type-object**.
* External C-code can now access the attributes of the extension type. * External C-code can now access the attributes of the extension type.
...@@ -459,7 +459,7 @@ External ...@@ -459,7 +459,7 @@ External
#. When declaring an external extension type... #. When declaring an external extension type...
* Don't declare any methods, because they are Python method class the are not needed. * Don't declare any methods, because they are Python method class the are not needed.
* Similiar to **structs** and **unions**, extension classes declared inside a ``cdef extern from`` block only need to declare the C members which you will actually need to access in your module. * Similar to **structs** and **unions**, extension classes declared inside a ``cdef extern from`` block only need to declare the C members which you will actually need to access in your module.
Name Specification Clause Name Specification Clause
......
...@@ -297,7 +297,7 @@ Optional Arguments ...@@ -297,7 +297,7 @@ Optional Arguments
Keyword-only Arguments Keyword-only Arguments
======================= =======================
* As in Python 3, ``def`` functions can have keyword-only argurments listed after a ``"*"`` parameter and before a ``"**"`` parameter if any:: * As in Python 3, ``def`` functions can have keyword-only arguments listed after a ``"*"`` parameter and before a ``"**"`` parameter if any::
def f(a, b, *args, c, d = 42, e, **kwds): def f(a, b, *args, c, d = 42, e, **kwds):
... ...
......
...@@ -3,7 +3,7 @@ Working with NumPy ...@@ -3,7 +3,7 @@ Working with NumPy
======================= =======================
You can use NumPy from Cython exactly the same as in regular Python, but by You can use NumPy from Cython exactly the same as in regular Python, but by
doing so you are loosing potentially high speedups because Cython has support doing so you are losing potentially high speedups because Cython has support
for fast access to NumPy arrays. Let's see how this works with a simple for fast access to NumPy arrays. Let's see how this works with a simple
example. example.
......
...@@ -310,7 +310,7 @@ Synonyms ...@@ -310,7 +310,7 @@ Synonyms
Source code encoding Source code encoding
====================== ======================
.. TODO: add the links to the relevent PEPs .. TODO: add the links to the relevant PEPs
Cython supports PEP 3120 and PEP 263, i.e. you can start your Cython source Cython supports PEP 3120 and PEP 263, i.e. you can start your Cython source
file with an encoding comment and generally write your source code in UTF-8. file with an encoding comment and generally write your source code in UTF-8.
......
...@@ -26,7 +26,7 @@ platform for generating an extension module. For these options look at the ...@@ -26,7 +26,7 @@ platform for generating an extension module. For these options look at the
official Python documentation. official Python documentation.
The other, and probably better, way is to use the :mod:`distutils` extension The other, and probably better, way is to use the :mod:`distutils` extension
provided with Cython. The benifit of this method is that it will give the provided with Cython. The benefit of this method is that it will give the
platform specific compilation options, acting like a stripped down autotools. platform specific compilation options, acting like a stripped down autotools.
......
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