diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-05-31 19:55:43 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-06-09 17:00:41 +0200 |
commit | 187f128563da83b8f202264658dc4dfa80899e93 (patch) | |
tree | 90707a0f7ec21f1a6cdfc1b193f27f38240ea138 | |
parent | 3a340b0db0e5629543efabdfacd54abf9f4148e7 (diff) | |
download | numpy-187f128563da83b8f202264658dc4dfa80899e93.tar.gz |
DOC: Add integer deprecations to release notes
(also minor spelling fix in comments)
-rw-r--r-- | doc/release/1.8.0-notes.rst | 7 | ||||
-rw-r--r-- | numpy/core/tests/test_deprecations.py | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/release/1.8.0-notes.rst b/doc/release/1.8.0-notes.rst index bdf4f118a..1ab7febfb 100644 --- a/doc/release/1.8.0-notes.rst +++ b/doc/release/1.8.0-notes.rst @@ -168,8 +168,11 @@ The 'full' and 'economic' modes of qr factorization are deprecated. General ~~~~~~~ -Use of non-integer indices has been deprecated. Previously float indices -were truncated to integers without warning. +The use of non-integer for indices and most integer arguments has been +deprecated. Previously float indices and function arguments such as axes or +shapes were truncated to integers without warning. For example +`arr.reshape(3., -1)` or `arr[0.]` will trigger a deprecation warning in +NumPy 1.8., and in some future version of NumPy they will raise an error. C-API ~~~~~ diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 8948291a3..3ad264583 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -126,7 +126,7 @@ class TestFloatNonIntegerArgumentDeprecation(_DeprecationTestCase): in PyArray_PyIntAsIntp and possibly PyArray_IntpConverter. In iterators.c the function slice_GetIndices could be removed in favor of its python equivalent and in mapping.c the function _tuple_of_integers - can be simplified (iff ``np.array([1]).__index__()`` is also deprecated). + can be simplified (if ``np.array([1]).__index__()`` is also deprecated). As for the deprecation time-frame: via Ralf Gommers, @@ -287,4 +287,4 @@ class TestArrayToIndexDeprecation(_DeprecationTestCase): if __name__ == "__main__": - run_module_suite()
\ No newline at end of file + run_module_suite() |