-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
BUG: memmap close files when it shouldn't, load leaves them open when it shouldn't #10551
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
Conversation
The diff in
|
b783fb3
to
c736ea7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Failures are just due to not adding the new null context manager to __all__
bytes = flen - offset | ||
if bytes % _dbytes: | ||
raise ValueError("Size of available data is not a " | ||
"multiple of the data-type size.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange indentation.
Want to wrap this up? From my comments, it seems there was only a trivial failure and an even more trivial nitpick to address. |
…g argument, or the file is an invalid zip
c736ea7
to
149c8e8
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with ignoring the alignment for now.
This would be straightforward with
ExitStack
, but I don't feel like backporting something that big from py3k.