Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DEP: finalize removal ofnumpy.compat#28961

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 3 commits intonumpy:mainfromjorenham:np.compat
May 14, 2025
Merged

Conversation

@jorenham
Copy link
Member

Since NumPy 2.0 it couldn't be used anymore:

>>>import numpyas np>>> np.compatTraceback (most recent call last):  File "<python-input-3>", line 1, in <module>    np.compat  File "/home/joren/.pyenv/versions/3.13.3/lib/python3.13/site-packages/numpy/__init__.py", line 399, in __getattr__    raise AttributeError(    ...<3 lines>...    )AttributeError: `np.compat` was removed in the NumPy 2.0 release. There's no replacement, as Python 2 is no longer supported.

I'm not sure why it still existed, but now that we're approaching 2.3, I figured that we might as well get rid of it completely.

@charris
Copy link
Member

Could use a release note.

jorenham reacted with thumbs up emoji

@jorenhamjorenham added the 56 - Needs Release Note.Needs an entry in doc/release/upcoming_changes labelMay 14, 2025
@jorenhamjorenham removed the 56 - Needs Release Note.Needs an entry in doc/release/upcoming_changes labelMay 14, 2025
Copy link
Member

@sebergseberg left a comment
edited
Loading

Choose a reason for hiding this comment

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

Heh, fun.from numpy import compat was still working. Either way, the deprecation warning on it exists for long enough, so I agree with just getting rid of it. Thanks!

EDIT: Please don't hesitate to merge once tests pass.

jorenham reacted with laugh emoji
@sebergseberg changed the titleMAINT: removenumpy.compatDEP: finalize removal ofnumpy.compatMay 14, 2025
@charrischarris merged commit1a3018a intonumpy:mainMay 14, 2025
76 checks passed
@charris
Copy link
Member

Thanks Joren.

jorenham reacted with thumbs up emoji

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

Reviewers

@sebergsebergseberg approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.3.0 release

Development

Successfully merging this pull request may close these issues.

3 participants

@jorenham@charris@seberg

[8]ページ先頭

©2009-2025 Movatter.jp