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
2e8f6f90
Commit
2e8f6f90
authored
Jun 24, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed some urls to fix some link redirection.
parent
084a25f5
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
32 additions
and
32 deletions
+32
-32
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
+2
-2
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
+3
-3
docs/src/tutorial/profiling_tutorial.rst
docs/src/tutorial/profiling_tutorial.rst
+3
-3
docs/src/tutorial/readings.rst
docs/src/tutorial/readings.rst
+3
-3
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
+3
-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/source_files_and_compilation.rst
docs/src/userguide/source_files_and_compilation.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 @
2e8f6f90
...
...
@@ -105,4 +105,4 @@ Using the Sage notebook
.. [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 @
2e8f6f90
...
...
@@ -22,7 +22,7 @@ according to the system used:
- **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
from http
://developer.apple.com
.
from http
s://developer.apple.com/
.
- **Windows** A popular option is to use the open source MinGW (a
Windows distribution of gcc). See the appendix for instructions for
...
...
@@ -57,6 +57,6 @@ with
pip install Cython --install-option="--no-cython-compile"
.. [Anaconda] http
://docs.continuum.io
/anaconda/
.. [Canopy] https://
enthought.com/products
/canopy/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
sagemath.org
.. [Anaconda] http
s://docs.anaconda.com
/anaconda/
.. [Canopy] https://
www.enthought.com/product
/canopy/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://
www.sagemath.org/
docs/src/quickstart/overview.rst
View file @
2e8f6f90
...
...
@@ -45,7 +45,7 @@ language.
.. [Cython] G. Ewing, R. W. Bradshaw, S. Behnel, D. S. Seljebotn et al.,
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: Python for the Java platform, http://www.jython.org.
.. [PyPy] The PyPy Group, PyPy: a Python implementation written in Python,
...
...
@@ -53,4 +53,4 @@ language.
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [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 @
2e8f6f90
...
...
@@ -184,7 +184,7 @@ be found in the `distutils documentation`_. Some useful options to know about
are ``include_dirs``, ``libraries``, and ``library_dirs`` which specify where
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/3
/extending/building.html
Sometimes this is not enough and you need finer customization of the
distutils :class:`Extension`.
...
...
@@ -490,7 +490,7 @@ will fall back to loading the source modules instead.
Note that it is not recommended to let :mod:`pyximport` build code
on end user side as it hooks into their import system. The best way
to cater for end users is to provide pre-built binary packages in the
`wheel <https://wheel.readthedocs.io/>`_ packaging format.
`wheel <https://wheel.readthedocs.io/
en/stable/
>`_ packaging format.
Arguments
...
...
docs/src/tutorial/appendix.rst
View file @
2e8f6f90
...
...
@@ -14,7 +14,7 @@ Appendix: Installing MinGW on Windows
includes e.g. "c:\\mingw\\bin" (if you installed MinGW to
"c:\\mingw"). The following web-page describes the procedure
in Windows XP (the Vista procedure is similar):
http
://support.microsoft.com/kb/310519
http
s://support.microsoft.com/en-us/help/310519/how-to-manage-environment-variables-in-windows-xp
4. Finally, tell Python to use MinGW as the default compiler
(otherwise it will try for Visual C). If Python is installed to
"c:\\Python27", create a file named
...
...
docs/src/tutorial/array.rst
View file @
2e8f6f90
...
...
@@ -25,7 +25,7 @@ while the cimport adds functions accessible from Cython.
A Python array is constructed with a type signature and sequence of
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/3
/library/array.html>`_.
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
...
...
docs/src/tutorial/clibraries.rst
View file @
2e8f6f90
...
...
@@ -30,7 +30,7 @@ type that can encapsulate all memory management.
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
file
``
c
-
algorithms
/
src
/
queue
.
h
``,
essentially
looks
like
this
:
...
...
docs/src/tutorial/cython_tutorial.rst
View file @
2e8f6f90
...
...
@@ -90,7 +90,7 @@ modules instead. The .py import mechanism is installed like this::
Note that it is not recommended to let :ref:`Pyximport<pyximport>` build code
on end user side as it hooks into their import system. The best way
to cater for end users is to provide pre-built binary packages in the
`wheel <https://wheel.readthedocs.io/>`_ packaging format.
`wheel <https://wheel.readthedocs.io/
en/stable/
>`_ packaging format.
Fibonacci Fun
==============
...
...
@@ -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.
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.
.. note::
...
...
@@ -336,7 +336,7 @@ standard library.
type in the ``array`` standard library module.
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
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
:linenos:
...
...
docs/src/tutorial/profiling_tutorial.rst
View file @
2e8f6f90
...
...
@@ -80,7 +80,7 @@ Enabling coverage analysis
--------------------------
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/en/latest
/>`_ tool.
To make the coverage analysis understand Cython modules, you also need to enable
Cython's coverage plugin in your ``.coveragerc`` file as follows:
...
...
@@ -116,7 +116,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
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
`Basel problem <http://en.wikipedia.org/wiki/Basel_problem>`_.
`Basel problem <http
s
://en.wikipedia.org/wiki/Basel_problem>`_.
.. math::
...
...
@@ -160,7 +160,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
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
Python `profiling documentation <http
://docs.python.org
/library/profile.html>`_
Python `profiling documentation <http
s://docs.python.org/3
/library/profile.html>`_
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
function) and cumtime (total time spent in this function **also** counting the
...
...
docs/src/tutorial/readings.rst
View file @
2e8f6f90
Further reading
===============
The main documentation is located at http://docs.cython.org/. Some
The main documentation is located at http://docs.cython.org/
en/latest/
. Some
recent features might not have documentation written yet, in such
cases some notes can usually be found in the form of a Cython
Enhancement Proposal (CEP) on https://github.com/cython/cython/wiki/enhancements.
...
...
@@ -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
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,
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/forum/#!forum
/cython-users
docs/src/tutorial/related_work.rst
View file @
2e8f6f90
...
...
@@ -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
Python modules.
.. [ctypes] http
://docs.python.org
/library/ctypes.html.
.. [ctypes] http
s://docs.python.org/3
/library/ctypes.html.
.. there's also the original ctypes home page: http://python.net/crew/theller/ctypes/
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [ShedSkin] M. Dufour, J. Coughlan, ShedSkin,
http
://code.google.com/p/shedskin/
http
s://code.google.com/archive/p/shedskin
.. [SWIG] David M. Beazley et al.,
SWIG: An Easy to Use Tool for Integrating Scripting Languages with C and C++,
http://www.swig.org.
docs/src/userguide/fusedtypes.rst
View file @
2e8f6f90
...
...
@@ -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
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!
...
...
docs/src/userguide/memoryviews.rst
View file @
2e8f6f90
...
...
@@ -686,7 +686,7 @@ call functions in C files, see :ref:`using_c_libraries`.
.. _GIL: http://docs.python.org/dev/glossary.html#term-global-interpreter-lock
.. _new style buffers: http
://docs.python.org
/c-api/buffer.html
.. _pep 3118: http
://www.python.org/peps/pep-3118.html
.. _NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _new style buffers: http
s://docs.python.org/3
/c-api/buffer.html
.. _pep 3118: http
s://www.python.org/dev/peps/pep-3118/
.. _NumPy: http
s
://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _example: http://www.scipy.org/Numpy_Example_List#newaxis
docs/src/userguide/parallelism.rst
View file @
2e8f6f90
...
...
@@ -190,4 +190,4 @@ OpenMP functions can be used by cimporting ``openmp``:
.. rubric:: References
.. [#] http
://www.openmp.org/mp-document
s/spec30.pdf
.. [#] http
s://www.openmp.org/wp-content/upload
s/spec30.pdf
docs/src/userguide/pypy.rst
View file @
2e8f6f90
...
...
@@ -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
called with or without the GIL, will not work as expected in PyPy.
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
...
...
docs/src/userguide/pyrex_differences.rst
View file @
2e8f6f90
...
...
@@ -72,7 +72,7 @@ Conditional expressions "x if b else y"
=========================================
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
...
...
docs/src/userguide/source_files_and_compilation.rst
View file @
2e8f6f90
...
...
@@ -105,7 +105,7 @@ Cython modules just with simple import statements, even like this:
Note that it is not recommended to let :mod:`pyximport` build code
on end user side as it hooks into their import system. The best way
to cater for end users is to provide pre-built binary packages in the
`wheel <https://wheel.readthedocs.io/>`_ packaging format.
`wheel <https://wheel.readthedocs.io/
en/stable/
>`_ packaging format.
Arguments
---------
...
...
docs/src/userguide/special_methods.rst
View file @
2e8f6f90
...
...
@@ -90,7 +90,7 @@ complaining about the signature mismatch.
See :ref:`existing-pointers-instantiation` for an example.
.. [#] http
://docs.python.org
/reference/datamodel.html#object.__new__
.. [#] http
s://docs.python.org/3
/reference/datamodel.html#object.__new__
.. _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