Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
ff34ca03
Commit
ff34ca03
authored
Jul 07, 2018
by
scoder
Committed by
GitHub
Jul 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2406 from gabrieldemarmiesse/broken_and_redirect_links
Changed some URLs to fix some links redirection.
parents
d460da83
0e289608
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
26 additions
and
28 deletions
+26
-28
docs/src/quickstart/build.rst
docs/src/quickstart/build.rst
+1
-1
docs/src/quickstart/install.rst
docs/src/quickstart/install.rst
+4
-4
docs/src/quickstart/overview.rst
docs/src/quickstart/overview.rst
+2
-2
docs/src/reference/compilation.rst
docs/src/reference/compilation.rst
+1
-1
docs/src/tutorial/appendix.rst
docs/src/tutorial/appendix.rst
+1
-1
docs/src/tutorial/array.rst
docs/src/tutorial/array.rst
+1
-1
docs/src/tutorial/clibraries.rst
docs/src/tutorial/clibraries.rst
+1
-1
docs/src/tutorial/cython_tutorial.rst
docs/src/tutorial/cython_tutorial.rst
+2
-2
docs/src/tutorial/profiling_tutorial.rst
docs/src/tutorial/profiling_tutorial.rst
+3
-3
docs/src/tutorial/readings.rst
docs/src/tutorial/readings.rst
+2
-2
docs/src/tutorial/related_work.rst
docs/src/tutorial/related_work.rst
+2
-2
docs/src/userguide/fusedtypes.rst
docs/src/userguide/fusedtypes.rst
+1
-1
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+1
-3
docs/src/userguide/parallelism.rst
docs/src/userguide/parallelism.rst
+1
-1
docs/src/userguide/pypy.rst
docs/src/userguide/pypy.rst
+1
-1
docs/src/userguide/pyrex_differences.rst
docs/src/userguide/pyrex_differences.rst
+1
-1
docs/src/userguide/special_methods.rst
docs/src/userguide/special_methods.rst
+1
-1
No files found.
docs/src/quickstart/build.rst
View file @
ff34ca03
...
@@ -105,4 +105,4 @@ Using the Sage notebook
...
@@ -105,4 +105,4 @@ Using the Sage notebook
.. [Jupyter] http://jupyter.org/
.. [Jupyter] http://jupyter.org/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
sagemath.org
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
www.sagemath.org/
docs/src/quickstart/install.rst
View file @
ff34ca03
...
@@ -22,7 +22,7 @@ according to the system used:
...
@@ -22,7 +22,7 @@ according to the system used:
- **Mac OS X** To retrieve gcc, one option is to install Apple's
- **Mac OS X** To retrieve gcc, one option is to install Apple's
XCode, which can be retrieved from the Mac OS X's install DVDs or
XCode, which can be retrieved from the Mac OS X's install DVDs or
from http
://developer.apple.com
.
from http
s://developer.apple.com/
.
- **Windows** A popular option is to use the open source MinGW (a
- **Windows** A popular option is to use the open source MinGW (a
Windows distribution of gcc). See the appendix for instructions for
Windows distribution of gcc). See the appendix for instructions for
...
@@ -57,6 +57,6 @@ with
...
@@ -57,6 +57,6 @@ with
pip install Cython --install-option="--no-cython-compile"
pip install Cython --install-option="--no-cython-compile"
.. [Anaconda] http
://docs.continuum.io
/anaconda/
.. [Anaconda] http
s://docs.anaconda.com
/anaconda/
.. [Canopy] https://
enthought.com/products
/canopy/
.. [Canopy] https://
www.enthought.com/product
/canopy/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
sagemath.org
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
www.sagemath.org/
docs/src/quickstart/overview.rst
View file @
ff34ca03
...
@@ -45,7 +45,7 @@ language.
...
@@ -45,7 +45,7 @@ language.
.. [Cython] G. Ewing, R. W. Bradshaw, S. Behnel, D. S. Seljebotn et al.,
.. [Cython] G. Ewing, R. W. Bradshaw, S. Behnel, D. S. Seljebotn et al.,
The Cython compiler, http://cython.org.
The Cython compiler, http://cython.org.
.. [IronPython] Jim Hugunin et al., http
://www.codeplex.com/
IronPython.
.. [IronPython] Jim Hugunin et al., http
s://archive.codeplex.com/?p=
IronPython.
.. [Jython] J. Huginin, B. Warsaw, F. Bock, et al.,
.. [Jython] J. Huginin, B. Warsaw, F. Bock, et al.,
Jython: Python for the Java platform, http://www.jython.org.
Jython: Python for the Java platform, http://www.jython.org.
.. [PyPy] The PyPy Group, PyPy: a Python implementation written in Python,
.. [PyPy] The PyPy Group, PyPy: a Python implementation written in Python,
...
@@ -53,4 +53,4 @@ language.
...
@@ -53,4 +53,4 @@ language.
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [Python] G. van Rossum et al., The Python programming language,
.. [Python] G. van Rossum et al., The Python programming language,
http
://python.org
.
http
s://www.python.org/
.
docs/src/reference/compilation.rst
View file @
ff34ca03
...
@@ -191,7 +191,7 @@ be found in the `distutils documentation`_. Some useful options to know about
...
@@ -191,7 +191,7 @@ be found in the `distutils documentation`_. Some useful options to know about
are ``include_dirs``, ``libraries``, and ``library_dirs`` which specify where
are ``include_dirs``, ``libraries``, and ``library_dirs`` which specify where
to find the ``.h`` and library files when linking to external libraries.
to find the ``.h`` and library files when linking to external libraries.
.. _distutils documentation: http://docs.python.org/extending/building.html
.. _distutils documentation: http
s
://docs.python.org/extending/building.html
Sometimes this is not enough and you need finer customization of the
Sometimes this is not enough and you need finer customization of the
distutils :class:`Extension`.
distutils :class:`Extension`.
...
...
docs/src/tutorial/appendix.rst
View file @
ff34ca03
...
@@ -14,7 +14,7 @@ Appendix: Installing MinGW on Windows
...
@@ -14,7 +14,7 @@ Appendix: Installing MinGW on Windows
includes e.g. "c:\\mingw\\bin" (if you installed MinGW to
includes e.g. "c:\\mingw\\bin" (if you installed MinGW to
"c:\\mingw"). The following web-page describes the procedure
"c:\\mingw"). The following web-page describes the procedure
in Windows XP (the Vista procedure is similar):
in Windows XP (the Vista procedure is similar):
http://support.microsoft.com/kb/310519
http
s
://support.microsoft.com/kb/310519
4. Finally, tell Python to use MinGW as the default compiler
4. Finally, tell Python to use MinGW as the default compiler
(otherwise it will try for Visual C). If Python is installed to
(otherwise it will try for Visual C). If Python is installed to
"c:\\Python27", create a file named
"c:\\Python27", create a file named
...
...
docs/src/tutorial/array.rst
View file @
ff34ca03
...
@@ -25,7 +25,7 @@ while the cimport adds functions accessible from Cython.
...
@@ -25,7 +25,7 @@ while the cimport adds functions accessible from Cython.
A Python array is constructed with a type signature and sequence of
A Python array is constructed with a type signature and sequence of
initial values. For the possible type signatures, refer to the Python
initial values. For the possible type signatures, refer to the Python
documentation for the `array module <http://docs.python.org/library/array.html>`_.
documentation for the `array module <http
s
://docs.python.org/library/array.html>`_.
Notice that when a Python array is assigned to a variable typed as
Notice that when a Python array is assigned to a variable typed as
memory view, there will be a slight overhead to construct the memory
memory view, there will be a slight overhead to construct the memory
...
...
docs/src/tutorial/clibraries.rst
View file @
ff34ca03
...
@@ -30,7 +30,7 @@ type that can encapsulate all memory management.
...
@@ -30,7 +30,7 @@ type that can encapsulate all memory management.
Defining
external
declarations
Defining
external
declarations
==============================
==============================
You
can
download
CAlg
`
here
<
https
://
github
.
com
/
fragglet
/
c
-
algorithms
/
archive
/
master
.
zip
>`
_
.
You
can
download
CAlg
`
here
<
https
://
codeload
.
github
.
com
/
fragglet
/
c
-
algorithms
/
zip
/
master
>`
_
.
The
C
API
of
the
queue
implementation
,
which
is
defined
in
the
header
The
C
API
of
the
queue
implementation
,
which
is
defined
in
the
header
file
``
c
-
algorithms
/
src
/
queue
.
h
``,
essentially
looks
like
this
:
file
``
c
-
algorithms
/
src
/
queue
.
h
``,
essentially
looks
like
this
:
...
...
docs/src/tutorial/cython_tutorial.rst
View file @
ff34ca03
...
@@ -326,7 +326,7 @@ With Cython, it is also possible to take advantage of the C++ language, notably,
...
@@ -326,7 +326,7 @@ With Cython, it is also possible to take advantage of the C++ language, notably,
part of the C++ standard library is directly importable from Cython code.
part of the C++ standard library is directly importable from Cython code.
Let's see what our :file:`primes.pyx` becomes when
Let's see what our :file:`primes.pyx` becomes when
using `vector <http://en.cppreference.com/w/cpp/container/vector>`_ from the C++
using `vector <http
s
://en.cppreference.com/w/cpp/container/vector>`_ from the C++
standard library.
standard library.
.. note::
.. note::
...
@@ -336,7 +336,7 @@ standard library.
...
@@ -336,7 +336,7 @@ standard library.
type in the ``array`` standard library module.
type in the ``array`` standard library module.
There is a method `reserve` available which will avoid copies if you know in advance
There is a method `reserve` available which will avoid copies if you know in advance
how many elements you are going to put in the vector. For more details
how many elements you are going to put in the vector. For more details
see `this page from cppreference <http://en.cppreference.com/w/cpp/container/vector>`_.
see `this page from cppreference <http
s
://en.cppreference.com/w/cpp/container/vector>`_.
.. literalinclude:: ../../examples/tutorial/cython_tutorial/primes_cpp.pyx
.. literalinclude:: ../../examples/tutorial/cython_tutorial/primes_cpp.pyx
:linenos:
:linenos:
...
...
docs/src/tutorial/profiling_tutorial.rst
View file @
ff34ca03
...
@@ -75,7 +75,7 @@ Enabling coverage analysis
...
@@ -75,7 +75,7 @@ Enabling coverage analysis
--------------------------
--------------------------
Since Cython 0.23, line tracing (see above) also enables support for coverage
Since Cython 0.23, line tracing (see above) also enables support for coverage
reporting with the `coverage.py <http://
nedbatchelder.com/code/coverage
/>`_ tool.
reporting with the `coverage.py <http://
coverage.readthedocs.io
/>`_ tool.
To make the coverage analysis understand Cython modules, you also need to enable
To make the coverage analysis understand Cython modules, you also need to enable
Cython's coverage plugin in your ``.coveragerc`` file as follows:
Cython's coverage plugin in your ``.coveragerc`` file as follows:
...
@@ -111,7 +111,7 @@ turning it into Cython code and keep profiling until it is fast enough.
...
@@ -111,7 +111,7 @@ turning it into Cython code and keep profiling until it is fast enough.
As a toy example, we would like to evaluate the summation of the reciprocals of
As a toy example, we would like to evaluate the summation of the reciprocals of
squares up to a certain integer :math:`n` for evaluating :math:`\pi`. The
squares up to a certain integer :math:`n` for evaluating :math:`\pi`. The
relation we want to use has been proven by Euler in 1735 and is known as the
relation we want to use has been proven by Euler in 1735 and is known as the
`Basel problem <http://en.wikipedia.org/wiki/Basel_problem>`_.
`Basel problem <http
s
://en.wikipedia.org/wiki/Basel_problem>`_.
.. math::
.. math::
...
@@ -155,7 +155,7 @@ Running this on my box gives the following output:
...
@@ -155,7 +155,7 @@ Running this on my box gives the following output:
This contains the information that the code runs in 6.2 CPU seconds. Note that
This contains the information that the code runs in 6.2 CPU seconds. Note that
the code got slower by 2 seconds because it ran inside the cProfile module. The
the code got slower by 2 seconds because it ran inside the cProfile module. The
table contains the real valuable information. You might want to check the
table contains the real valuable information. You might want to check the
Python `profiling documentation <http://docs.python.org/library/profile.html>`_
Python `profiling documentation <http
s
://docs.python.org/library/profile.html>`_
for the nitty gritty details. The most important columns here are totime (total
for the nitty gritty details. The most important columns here are totime (total
time spent in this function **not** counting functions that were called by this
time spent in this function **not** counting functions that were called by this
function) and cumtime (total time spent in this function **also** counting the
function) and cumtime (total time spent in this function **also** counting the
...
...
docs/src/tutorial/readings.rst
View file @
ff34ca03
...
@@ -20,7 +20,7 @@ focusses on core development issues. Feel free to use it to report a
...
@@ -20,7 +20,7 @@ focusses on core development issues. Feel free to use it to report a
clear bug, to ask for guidance if you have time to spare to develop
clear bug, to ask for guidance if you have time to spare to develop
Cython, or if you have suggestions for future development.
Cython, or if you have suggestions for future development.
.. [DevList] Cython developer mailing list: http://mail.python.org/mailman/listinfo/cython-devel
.. [DevList] Cython developer mailing list: http
s
://mail.python.org/mailman/listinfo/cython-devel
.. [Seljebotn09] D. S. Seljebotn, Fast numerical computations with Cython,
.. [Seljebotn09] D. S. Seljebotn, Fast numerical computations with Cython,
Proceedings of the 8th Python in Science Conference, 2009.
Proceedings of the 8th Python in Science Conference, 2009.
.. [UserList] Cython users mailing list: http://groups.google.com/group/cython-users
.. [UserList] Cython users mailing list: http
s
://groups.google.com/group/cython-users
docs/src/tutorial/related_work.rst
View file @
ff34ca03
...
@@ -39,12 +39,12 @@ is that it has no support for calling the Python/C API for operations
...
@@ -39,12 +39,12 @@ is that it has no support for calling the Python/C API for operations
it does not support natively, and supports very few of the standard
it does not support natively, and supports very few of the standard
Python modules.
Python modules.
.. [ctypes] http://docs.python.org/library/ctypes.html.
.. [ctypes] http
s
://docs.python.org/library/ctypes.html.
.. there's also the original ctypes home page: http://python.net/crew/theller/ctypes/
.. there's also the original ctypes home page: http://python.net/crew/theller/ctypes/
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [ShedSkin] M. Dufour, J. Coughlan, ShedSkin,
.. [ShedSkin] M. Dufour, J. Coughlan, ShedSkin,
http
://code.google.com/p/shedskin/
http
s://github.com/shedskin/shedskin
.. [SWIG] David M. Beazley et al.,
.. [SWIG] David M. Beazley et al.,
SWIG: An Easy to Use Tool for Integrating Scripting Languages with C and C++,
SWIG: An Easy to Use Tool for Integrating Scripting Languages with C and C++,
http://www.swig.org.
http://www.swig.org.
docs/src/userguide/fusedtypes.rst
View file @
ff34ca03
...
@@ -12,7 +12,7 @@ operate on values of multiple types. Thus fused types allow `generic
...
@@ -12,7 +12,7 @@ operate on values of multiple types. Thus fused types allow `generic
programming`_ and are akin to templates in C++ or generics in languages like
programming`_ and are akin to templates in C++ or generics in languages like
Java / C#.
Java / C#.
.. _generic programming: http://en.wikipedia.org/wiki/Generic_programming
.. _generic programming: http
s
://en.wikipedia.org/wiki/Generic_programming
.. Note:: Support is still somewhat experimental, there may be bugs!
.. Note:: Support is still somewhat experimental, there may be bugs!
...
...
docs/src/userguide/memoryviews.rst
View file @
ff34ca03
...
@@ -658,7 +658,5 @@ call functions in C files, see :ref:`using_c_libraries`.
...
@@ -658,7 +658,5 @@ call functions in C files, see :ref:`using_c_libraries`.
.. _GIL: http://docs.python.org/dev/glossary.html#term-global-interpreter-lock
.. _GIL: http://docs.python.org/dev/glossary.html#term-global-interpreter-lock
.. _new style buffers: http://docs.python.org/c-api/buffer.html
.. _NumPy: https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _pep 3118: http://www.python.org/peps/pep-3118.html
.. _NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _example: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
.. _example: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
docs/src/userguide/parallelism.rst
View file @
ff34ca03
...
@@ -190,4 +190,4 @@ OpenMP functions can be used by cimporting ``openmp``:
...
@@ -190,4 +190,4 @@ OpenMP functions can be used by cimporting ``openmp``:
.. rubric:: References
.. rubric:: References
.. [#] http://www.openmp.org/mp-documents/spec30.pdf
.. [#] http
s
://www.openmp.org/mp-documents/spec30.pdf
docs/src/userguide/pypy.rst
View file @
ff34ca03
...
@@ -118,7 +118,7 @@ re-entrant in PyPy and deadlocks when called twice. This means that
...
@@ -118,7 +118,7 @@ re-entrant in PyPy and deadlocks when called twice. This means that
code that tries to acquire the GIL "just in case", because it might be
code that tries to acquire the GIL "just in case", because it might be
called with or without the GIL, will not work as expected in PyPy.
called with or without the GIL, will not work as expected in PyPy.
See `PyGILState_Ensure should not deadlock if GIL already held
See `PyGILState_Ensure should not deadlock if GIL already held
<https://bitbucket.org/pypy/pypy/issue/1778>`_.
<https://bitbucket.org/pypy/pypy/issue
s
/1778>`_.
Efficiency
Efficiency
...
...
docs/src/userguide/pyrex_differences.rst
View file @
ff34ca03
...
@@ -75,7 +75,7 @@ Conditional expressions "x if b else y"
...
@@ -75,7 +75,7 @@ Conditional expressions "x if b else y"
=========================================
=========================================
Conditional expressions as described in
Conditional expressions as described in
http://www.python.org/dev/peps/pep-0308/::
http
s
://www.python.org/dev/peps/pep-0308/::
X if C else Y
X if C else Y
...
...
docs/src/userguide/special_methods.rst
View file @
ff34ca03
...
@@ -90,7 +90,7 @@ complaining about the signature mismatch.
...
@@ -90,7 +90,7 @@ complaining about the signature mismatch.
See :ref:`existing-pointers-instantiation` for an example.
See :ref:`existing-pointers-instantiation` for an example.
.. [#] http://docs.python.org/reference/datamodel.html#object.__new__
.. [#] http
s
://docs.python.org/reference/datamodel.html#object.__new__
.. _finalization_method:
.. _finalization_method:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment