8000 BUG: Fix writing of intrinsic long integers in python2 npy files. by charris · Pull Request #5183 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix writing of intrinsic long integers in python2 npy files. #5183

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

Merged
merged 1 commit into from
Oct 15, 2014

Conversation

charris
Copy link
Member
@charris charris commented Oct 14, 2014

This only happens when C long is smaller than npy_intp, in particular,
on 64 bit windows. The 'L' suffix is not needed as long as safe_eval
is used to recover the values, and the long intrinsic causes problems
for python3.

The python3 read side has been fixed, but we might as well fix the
problem at the root as well.

Rebased for backport to 1.9.x.

< 8000 input type="hidden" name="oid" value="a8e027ff49fdfdce4d845eef7e1f8cd939ae840a" autocomplete="off" data-targets="batch-deferred-content.inputs" />
This only happens when C long is smaller than npy_intp, in particular,
on 64 bit windows. The 'L' suffix is not needed as long as safe_eval
is used to recover the values, and the long intrinsic causes problems
for python3.

The python3 read side has been fixed, but we might as well fix the
problem at the root as well.
@charris
Copy link
Member Author
charris commented Oct 14, 2014

It runs, but needs to be checked on windows 64 bits by dumping a *.npy created with python2 and checking the result for the L suffix.

juliantaylor added a commit that referenced this pull request Oct 15, 2014
BUG: Fix writing of intrinsic long integers in python2 npy files.
@juliantaylor juliantaylor merged commit e2218a6 into numpy:master Oct 15, 2014
@juliantaylor
Copy link
Contributor

thanks
storing unicode keys also looks very broken, but everything regarding py3 strings is already expected to broken in numpy so I don't consider it a 1.9.1 blocker

juliantaylor added a commit that referenced this pull request Oct 15, 2014
BUG: Fix writing of intrinsic long integers in python2 npy files.
@charris charris deleted the fix-npy-header-write branch October 15, 2014 21:44
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.

2 participants
0