Commit 595ca06d authored by Jakub Wilk's avatar Jakub Wilk

docs: Remove duplicated words.

parent 9831142c
...@@ -448,7 +448,7 @@ External ...@@ -448,7 +448,7 @@ External
print "Imag:", c.cval.imag print "Imag:", c.cval.imag
.. note:: Some important things in the example: .. note:: Some important things in the example:
#. ``ctypedef`` has been used because because Python's header file has the struct decalared with:: #. ``ctypedef`` has been used because Python's header file has the struct decalared with::
ctypedef struct { ctypedef struct {
... ...
......
...@@ -66,7 +66,7 @@ cimport ...@@ -66,7 +66,7 @@ cimport
* Use the **cimport** statement, as you would Python's import statement, to access these files * Use the **cimport** statement, as you would Python's import statement, to access these files
from other definition or implementation files. from other definition or implementation files.
* **cimport** does not need to be called in ``.pyx`` file for for ``.pxd`` file that has the * **cimport** does not need to be called in ``.pyx`` file for ``.pxd`` file that has the
same name, as they are already in the same namespace. same name, as they are already in the same namespace.
* For cimport to find the stated definition file, the path to the file must be appended to the * For cimport to find the stated definition file, the path to the file must be appended to the
``-I`` option of the **Cython compile command**. ``-I`` option of the **Cython compile command**.
...@@ -705,7 +705,7 @@ Error and Exception Handling ...@@ -705,7 +705,7 @@ Error and Exception Handling
.. note:: Python Objects .. note:: Python Objects
* Declared exception values are **not** need. * Declared exception values are **not** need.
* Remember that Cython assumes that a function function without a declared return value, returns a Python object. * Remember that Cython assumes that a function without a declared return value, returns a Python object.
* Exceptions on such functions are implicitly propagated by returning ``NULL`` * Exceptions on such functions are implicitly propagated by returning ``NULL``
.. note:: C++ .. note:: C++
......
...@@ -132,7 +132,7 @@ you can use a cast to write:: ...@@ -132,7 +132,7 @@ you can use a cast to write::
This may be dangerous if :meth:`quest()` is not actually a :class:`Shrubbery`, as it This may be dangerous if :meth:`quest()` is not actually a :class:`Shrubbery`, as it
will try to access width as a C struct member which may not exist. At the C level, will try to access width as a C struct member which may not exist. At the C level,
rather than raising an :class:`AttributeError`, either an nonsensical result will be rather than raising an :class:`AttributeError`, either an nonsensical result will be
returned (interpreting whatever data is at at that address as an int) or a segfault returned (interpreting whatever data is at that address as an int) or a segfault
may result from trying to access invalid memory. Instead, one can write:: may result from trying to access invalid memory. Instead, one can write::
print (<Shrubbery?>quest()).width print (<Shrubbery?>quest()).width
......
...@@ -649,7 +649,7 @@ None Slices ...@@ -649,7 +649,7 @@ None Slices
=========== ===========
Although memoryview slices are not objects they can be set to None and they can Although memoryview slices are not objects they can be set to None and they can
be be checked for being None as well:: be checked for being None as well::
def func(double[:] myarray = None): def func(double[:] myarray = None):
print(myarray is None) print(myarray is None)
......
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