8000 Fix dtype int vs char inconsistencies + dtype hashing by cournape · Pull Request #231 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Fix dtype int vs char inconsistencies + dtype hashing #231

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

Closed
wants to merge 5 commits into from

Conversation

cournape
Copy link
Member
@cournape cournape commented Mar 7, 2012

Fix int->char invalid casts + fix #2017 by ignoring type_num when hashing dtype. Doing the latter is justified by PyArray_EquivTypes which ignores it as well.

/* We use an integer converted to char for backward compatibility with
* pickled arrays. Pickled arrays created with previous versions encoded
* flags as an int even though it actually was a char in the PyArray_Descr
* structure */
Copy link
Member

Choose a reason for hiding this comment

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

/*
 * blah
 */

@charris
Copy link
Member
charris commented Mar 11, 2012

This seems like the right thing to do. What are the implications for pickled arrays of the change?

@charris
Copy link
Member
charris commented Mar 12, 2012

Pushed 39029f5..bb7e5e2. Thanks.

@charris charris closed this Mar 12, 2012
luyahan pushed a commit to plctlab/numpy that referenced this pull request Apr 25, 2024
feat: Add vst3[q]_[s8|s16|s32|f32|u8|u16|u32|s64|u64]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building Numpy / Scipy on AIX system (Trac #1419)
2 participants
0