Commit d460da83 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2411 from gabrieldemarmiesse/replace_broken_links

Fixing some broken links.
parents 5750946c 24b50d3f
...@@ -2183,9 +2183,9 @@ Features added ...@@ -2183,9 +2183,9 @@ Features added
* GDB support. http://docs.cython.org/src/userguide/debugging.html * GDB support. http://docs.cython.org/src/userguide/debugging.html
* A new build system with support for inline distutils directives, correct dependency tracking, and parallel compilation. http://wiki.cython.org/enhancements/distutils_preprocessing * A new build system with support for inline distutils directives, correct dependency tracking, and parallel compilation. https://github.com/cython/cython/wiki/enhancements-distutils_preprocessing
* Support for dynamic compilation at runtime via the new cython.inline function and cython.compile decorator. http://wiki.cython.org/enhancements/inline * Support for dynamic compilation at runtime via the new cython.inline function and cython.compile decorator. https://github.com/cython/cython/wiki/enhancements-inline
* "nogil" blocks are supported when compiling pure Python code by writing "with cython.nogil". * "nogil" blocks are supported when compiling pure Python code by writing "with cython.nogil".
......
...@@ -467,7 +467,7 @@ supports the ``__future__`` import ``unicode_literals`` that instructs ...@@ -467,7 +467,7 @@ supports the ``__future__`` import ``unicode_literals`` that instructs
the parser to read all unprefixed :obj:`str` literals in a source file as the parser to read all unprefixed :obj:`str` literals in a source file as
unicode string literals, just like Python 3. unicode string literals, just like Python 3.
.. _`CEP 108`: http://wiki.cython.org/enhancements/stringliterals .. _`CEP 108`: https://github.com/cython/cython/wiki/enhancements-stringliterals
Single bytes and characters Single bytes and characters
--------------------------- ---------------------------
......
...@@ -567,7 +567,7 @@ header:: ...@@ -567,7 +567,7 @@ header::
If the callback may be called from another non-Python thread, If the callback may be called from another non-Python thread,
care must be taken to initialize the GIL first, through a call to care must be taken to initialize the GIL first, through a call to
`PyEval_InitThreads() <http://docs.python.org/dev/c-api/init.html#PyEval_InitThreads>`_. `PyEval_InitThreads() <https://docs.python.org/dev/c-api/init.html#c.PyEval_InitThreads>`_.
If you're already using :ref:`cython.parallel <parallel>` in your module, this will already have been taken care of. If you're already using :ref:`cython.parallel <parallel>` in your module, this will already have been taken care of.
The GIL may also be acquired through the ``with gil`` statement:: The GIL may also be acquired through the ``with gil`` statement::
......
...@@ -149,6 +149,9 @@ As for NumPy, new axes can be introduced by indexing an array with ``None`` :: ...@@ -149,6 +149,9 @@ As for NumPy, new axes can be introduced by indexing an array with ``None`` ::
# 2D array with shape (50, 1) # 2D array with shape (50, 1)
myslice[:, None] myslice[:, None]
# 3D array with shape (1, 10, 1)
myslice[None, 10:-20:2, None]
One may mix new axis indexing with all other forms of indexing and slicing. One may mix new axis indexing with all other forms of indexing and slicing.
See also an example_. See also an example_.
...@@ -658,4 +661,4 @@ call functions in C files, see :ref:`using_c_libraries`. ...@@ -658,4 +661,4 @@ call functions in C files, see :ref:`using_c_libraries`.
.. _new style buffers: http://docs.python.org/c-api/buffer.html .. _new style buffers: http://docs.python.org/c-api/buffer.html
.. _pep 3118: http://www.python.org/peps/pep-3118.html .. _pep 3118: http://www.python.org/peps/pep-3118.html
.. _NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout .. _NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _example: http://www.scipy.org/Numpy_Example_List#newaxis .. _example: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
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