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

BUG: core: fix NPY_TITLE_KEY macro on pypy#10962

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
ahaldane merged 1 commit intonumpy:maintenance/1.14.xfromahaldane:backport_10860
Apr 23, 2018

Conversation

@ahaldane
Copy link
Member

Backport of#10860

On Pypy, dictionary keys do not necessarily preserve object identity.

This however was assumed by the NPY_TITLE_KEY macro, which relies on
descriptor.c:568 using the same 'title' object both as a dictionary key
as an entry in the tuple inserted.

Since the items in the field dict are unique, value identity is however
sufficient for the NPY_TITLE_KEY macro. On PyPy, fix the macro by
comparing values instead.

On Pypy, dictionary keys do not necessarily preserve object identity.This however was assumed by the NPY_TITLE_KEY macro, which relies ondescriptor.c:568 using the same 'title' object both as a dictionary keyas an entry in the tuple inserted.Since the items in the field dict are unique, value identity is howeversufficient for the NPY_TITLE_KEY macro. On PyPy, fix the macro bycomparing values instead.
@ahaldaneahaldane added this to the1.14.3 release milestoneApr 23, 2018
@ahaldaneahaldane merged commitcfa022f intonumpy:maintenance/1.14.xApr 23, 2018
@charrischarris changed the title(Backport 1.14.3) BUG: core: fix NPY_TITLE_KEY macro on pypyBUG: core: fix NPY_TITLE_KEY macro on pypyApr 24, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ahaldane@pv

[8]ページ先頭

©2009-2025 Movatter.jp