Skip to content

DEP: Deprecate np.alen - #14181

Merged
mattip merged 6 commits into
numpy:masterfrom
guilhermeleobas:deprecate_np_alen
Aug 8, 2019
Merged

mattip merged 6 commits into
numpy:masterfrom
guilhermeleobas:deprecate_np_alen

Conversation

@guilhermeleobas

Copy link
Copy Markdown
Contributor

DEP: Deprecate np.alen

Issue: #14155

Comment thread numpy/core/fromnumeric.py Outdated
7

"""
# NumPy 1.17.0, 2019-08-01

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 1.18.0, we tend not to backport deprecations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry. I will change that!

@eric-wieser

eric-wieser commented Aug 2, 2019 •

Copy link
Copy Markdown
Member

Would be good to have a test in test_deprecations.py.

You might find you have to silence warnings in existing tests too

@guilhermeleobas guilhermeleobas changed the title DEP, WIP: Deprecate np.alen DEP: Deprecate np.alen Aug 2, 2019
@guilhermeleobas

Copy link
Copy Markdown
Contributor Author

Ready for review :)

Comment thread numpy/core/tests/test_multiarray.py Resolved
Comment thread numpy/core/fromnumeric.py Resolved
@eric-wieser eric-wieser added the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Aug 3, 2019
@eric-wieser

Copy link
Copy Markdown
Member

Change looks good, but needs a release note

Comment thread doc/release/1.18.0-notes.rst Outdated

Deprecate `np.alen`
---------------------------------------------------------------
`np.alen` was deprecated. Use `len` instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should put this in https://github.com/numpy/numpy/tree/master/changelog, with the filename 14181.deprecation.rst. Our release note process changed very recently - sorry for the confusion

@eric-wieser eric-wieser removed the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Aug 7, 2019
@eric-wieser eric-wieser added this to the 1.18.0 release milestone Aug 7, 2019
@mattip
mattip merged commit 68626ac into numpy:master Aug 8, 2019
@mattip

mattip commented Aug 8, 2019

Copy link
Copy Markdown
Member

Thanks @guilhermeleobas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants