diff options
author | MarsBarLee <46167686+MarsBarLee@users.noreply.github.com> | 2021-06-08 14:50:40 -0400 |
---|---|---|
committer | MarsBarLee <46167686+MarsBarLee@users.noreply.github.com> | 2021-06-08 14:50:40 -0400 |
commit | d1134930c8dfef8ea935d5c4f2b6ee6613a03d82 (patch) | |
tree | a4cfc29a37cc93a9dcc076b7d818ca9e604e0095 /doc/source | |
parent | 9964bf877277f31fb5f0092a36b51bf6782366ce (diff) | |
parent | b9a63f5052b0ba5a7a5b2616ddcc1754df177bd3 (diff) | |
download | numpy-d1134930c8dfef8ea935d5c4f2b6ee6613a03d82.tar.gz |
Merge branch 'numpy:main' into crosslink-gitpod
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/conf.py | 1 | ||||
-rw-r--r-- | doc/source/release/1.21.0-notes.rst | 33 | ||||
-rw-r--r-- | doc/source/user/building.rst | 4 | ||||
-rw-r--r-- | doc/source/user/how-to-how-to.rst | 5 |
4 files changed, 4 insertions, 39 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 5ba7f70b8..a49074922 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -295,6 +295,7 @@ intersphinx_mapping = { 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), 'scipy-lecture-notes': ('https://scipy-lectures.org', None), 'pytest': ('https://docs.pytest.org/en/stable', None), + 'numpy-tutorials': ('https://numpy.org/numpy-tutorials', None), } diff --git a/doc/source/release/1.21.0-notes.rst b/doc/source/release/1.21.0-notes.rst index ac65b8fd0..c0d283b72 100644 --- a/doc/source/release/1.21.0-notes.rst +++ b/doc/source/release/1.21.0-notes.rst @@ -82,39 +82,6 @@ The methods in question are: Future Changes ============== -Promotion of strings with numbers and bools is deprecated ---------------------------------------------------------- -Any promotion of numbers and strings is deprecated and will -give a ``FutureWarning`` the main affected functionalities -are: - -* `numpy.promote_types` and `numpy.result_type` which will raise - an error in this case in the future. -* `numpy.concatenate` will raise an error when concatenating a string - and numeric array. You can use ``dtype="S"`` to explicitly request - a string result. -* `numpy.array` and related functions will start returning ``object`` - arrays because these functions use ``object`` as a fallback when - no common dtype can be found. However, it may happen that future - releases of NumPy will generally error in these cases. - -This will mainly affect code such as:: - - np.asarray(['string', 0]) - -and:: - - np.concatenate((['string'], [0])) - -in both cases adding ``dtype="U"`` or ``dtype="S"`` will give the -previous (string) result, while ``dtype=object`` will ensure an array with -object dtype is returned. - -Comparisons, universal functions, and casting are not affected by this. - -(`gh-18116 <https://github.com/numpy/numpy/pull/18116>`__) - - Expired deprecations ==================== diff --git a/doc/source/user/building.rst b/doc/source/user/building.rst index cbc71fa7c..c11b6d738 100644 --- a/doc/source/user/building.rst +++ b/doc/source/user/building.rst @@ -44,8 +44,8 @@ Building NumPy requires the following software installed: 2) Compilers To build any extension modules for Python, you'll need a C compiler. - Various NumPy modules use FORTRAN 77 libraries, so you'll also need a - FORTRAN 77 compiler installed. + While a FORTRAN 77 compiler is not necessary for building NumPy, it is needed to run + the ``numpy.f2py`` tests. These tests are skipped if the compiler is not auto-detected. Note that NumPy is developed mainly using GNU compilers and tested on MSVC and Clang compilers. Compilers from other vendors such as Intel, diff --git a/doc/source/user/how-to-how-to.rst b/doc/source/user/how-to-how-to.rst index 16a2fc7a4..13d2b405f 100644 --- a/doc/source/user/how-to-how-to.rst +++ b/doc/source/user/how-to-how-to.rst @@ -105,10 +105,7 @@ deep dives intended to give understanding rather than immediate assistance, and `References`, which give complete, autoritative data on some concrete part of NumPy (like its API) but aren't obligated to paint a broader picture. -For more on tutorials, see the `tutorial how-to`_. - -.. _`tutorial how-to`: https://github.com/numpy/numpy-tutorials/blob/master/tutorial_style.ipynb - +For more on tutorials, see :doc:`content/tutorial-style-guide` ****************************************************************************** Is this page an example of a how-to? |