Skip to content

BUG: to_pickle/read_pickle do not close user-provided file objects #35686

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
Aug 12, 2020
Merged

BUG: to_pickle/read_pickle do not close user-provided file objects #35686

merged 1 commit into from
Aug 12, 2020

Conversation

twoertwein
Copy link
Member

Do not close user-provided file-objects in to_pickle and read_pickle.

@jreback jreback added Bug IO Data IO issues that don't fit into a more specific label labels Aug 12, 2020
@jreback jreback added this to the 1.2 milestone Aug 12, 2020
@jreback jreback merged commit a0896e1 into pandas-dev:master Aug 12, 2020
@jreback
Copy link
Contributor

jreback commented Aug 12, 2020

thanks @twoertwein very nice!

@twoertwein twoertwein deleted the pickle_close branch August 12, 2020 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.to_pickle(bytes_io_buffer) is automatically closed internally
2 participants