Commit 2e8f6f90 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Changed some urls to fix some link redirection.

parent 084a25f5
...@@ -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/
...@@ -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 https://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] https://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/
...@@ -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., https://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. https://www.python.org/.
...@@ -184,7 +184,7 @@ be found in the `distutils documentation`_. Some useful options to know about ...@@ -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 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: https://docs.python.org/3/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`.
...@@ -490,7 +490,7 @@ will fall back to loading the source modules instead. ...@@ -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 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 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 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 Arguments
......
...@@ -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 https://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 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
......
...@@ -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 <https://docs.python.org/3/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
......
...@@ -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:
......
...@@ -90,7 +90,7 @@ modules instead. The .py import mechanism is installed like this:: ...@@ -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 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 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 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 Fibonacci Fun
============== ==============
...@@ -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 <https://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 <https://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:
......
...@@ -80,7 +80,7 @@ Enabling coverage analysis ...@@ -80,7 +80,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/en/latest/>`_ 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:
...@@ -116,7 +116,7 @@ turning it into Cython code and keep profiling until it is fast enough. ...@@ -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 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 <https://en.wikipedia.org/wiki/Basel_problem>`_.
.. math:: .. math::
...@@ -160,7 +160,7 @@ Running this on my box gives the following output: ...@@ -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 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 <https://docs.python.org/3/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
......
Further reading 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 recent features might not have documentation written yet, in such
cases some notes can usually be found in the form of a Cython cases some notes can usually be found in the form of a Cython
Enhancement Proposal (CEP) on https://github.com/cython/cython/wiki/enhancements. 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 ...@@ -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: https://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: https://groups.google.com/forum/#!forum/cython-users
...@@ -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] https://docs.python.org/3/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/ https://code.google.com/archive/p/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.
...@@ -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: https://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!
......
...@@ -686,7 +686,7 @@ call functions in C files, see :ref:`using_c_libraries`. ...@@ -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 .. _GIL: http://docs.python.org/dev/glossary.html#term-global-interpreter-lock
.. _new style buffers: http://docs.python.org/c-api/buffer.html .. _new style buffers: https://docs.python.org/3/c-api/buffer.html
.. _pep 3118: http://www.python.org/peps/pep-3118.html .. _pep 3118: https://www.python.org/dev/peps/pep-3118/
.. _NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout .. _NumPy: https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _example: http://www.scipy.org/Numpy_Example_List#newaxis .. _example: http://www.scipy.org/Numpy_Example_List#newaxis
...@@ -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 .. [#] https://www.openmp.org/wp-content/uploads/spec30.pdf
...@@ -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/issues/1778>`_.
Efficiency Efficiency
......
...@@ -72,7 +72,7 @@ Conditional expressions "x if b else y" ...@@ -72,7 +72,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/:: https://www.python.org/dev/peps/pep-0308/::
X if C else Y X if C else Y
......
...@@ -105,7 +105,7 @@ Cython modules just with simple import statements, even like this: ...@@ -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 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 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 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 Arguments
--------- ---------
......
...@@ -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__ .. [#] https://docs.python.org/3/reference/datamodel.html#object.__new__
.. _finalization_method: .. _finalization_method:
......
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