8000 DEP: Deprecate non-tuple nd-indices by eric-wieser · Pull Request #9686 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DEP: Deprecate non-tuple nd-indices #9686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into force-tuple
  • Loading branch information
eric-wieser authored May 26, 2018
commit a10b4270d4b3f538254698874560d645c0525dc5
25 changes: 25 additions & 0 deletions doc/release/1.15.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ Deprecations
which currently is interpreted as ``arr[array([0, 1]), array([0, 1])]``.
In future, this will be interpreted as ``arr[array([[0, 1], [0, 1]])]``.

* Direct imports from the following modules is deprecated. All testing related
imports should come from `numpy.testing`.
* `np.testing.utils`
* `np.testing.decorators`
* `np.testing.nosetester`
* `np.testing.noseclasses`
* `np.core.umath_tests`

* Giving a generator to `np.sum` is now deprecated. This was undocumented, but
worked. Previously, it would calculate the sum of the generator expression.
In the future, it might return a different result. Use `np.sum(np.from_iter(generator))`
or the built-in Python `sum` instead.

* Users of the C-API should call ``PyArrayResolveWriteBackIfCopy`` or
``PyArray_DiscardWritbackIfCopy`` on any array with the ``WRITEBACKIFCOPY``
flag set, before the array is deallocated. A deprecation warning will be
emitted if those calls are not used when needed.

* Users of ``nditer`` should use the nditer object as a context manager
anytime one of the iterator operands is writeable, so that numpy can
manage writeback semantics, or should call ``it.close()``. A
`RuntimeWarning` will be emitted otherwise in these cases. Users of the C-API
should call ``NpyIter_Close`` before ``NpyIter_Deallocate``.


Future Changes
==============

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0