Skip to content
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

MAINT: Use _ITEMSIZE rather than _DESCR(arr)->elsize #25814

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

seberg
Copy link
Member

@seberg seberg commented Feb 13, 2024

This is a simple cleanup, but an important step because almost all access of elsize is through an array. Fixing these (which arguably is nicer) greatly simplifies potentially renaming elsize.


I used the script from the other PR to create the diff and had a look over to sanity check.

…ize``

This is a simple cleanup, but an important step because almost all access
of ``elsize`` is through an array.  Fixing these (which arguably is nicer)
greatly simplifies potentially renaming ``elsize``.
@seberg seberg changed the title MAINT: Use PyArray_ITEMSIZE rather than PyArray_DESCR(arr)->elsize MAINT: Use _ITEMSIZE rather than _DESCR(arr)->elsize Feb 13, 2024
@charris charris merged commit 9342eda into numpy:main Feb 13, 2024
64 checks passed
@charris
Copy link
Member

charris commented Feb 13, 2024

Thanks Sebastian.

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.

None yet

2 participants