Skip to content

Fix3483 #4146

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 3 commits into from
Closed

Fix3483 #4146

wants to merge 3 commits into from

Conversation

dvijpatel
Copy link

Fixed #3483.
Added pickle_save() function for consistency.

pickle_save() function combines pickle.dump(obj, file[, protocol]) and pickle.dumps(obj[, protocol]).

pickle_load() function combines pickle.load(file) and pickle.loads(string).

Both functions were created using a similar format to java overloading.

@tacaswell tacaswell added this to the unassigned milestone Feb 23, 2015
@tacaswell
Copy link
Member

Thank you for this contribution, however I am not really clear on how this address #3483. It also looks like your commit history is a bit confused.

@matplotlib/developers Thoughts? I am 👎 on this on principle due to the many issues with pickles. I don't think we should provide a top-level function that implicitly endorses the usage of pickles to store or exchange figures.

As part of the export functionality in MEP23 we should be able to have real serialize/deserialize functionality for the next minor point release which would supersede this.

@efiring
Copy link
Member

efiring commented Feb 23, 2015

@tacaswell I think it does address #3483, by implementing a suggestion I made. The problem in #3483 is that unpickling runs into trouble in interactive mode by triggering draw() operations too soon. The solution here is to turn off interactive mode while unpickling.

Apart from that, though, I agree that pickles are problematic. Given that you have grand plans for a superior serialization scheme, it is better not to introduce pickle wrappers now.

@fariza
Copy link
Member

fariza commented Feb 23, 2015

@tacaswell did you really mean MEP23?

@tacaswell
Copy link
Member

No, I meant some combination of MEP25 and MEP26

On Mon, Feb 23, 2015 at 11:02 AM Federico Ariza notifications@github.com
wrote:

@tacaswell https://github.com/tacaswell did you really mean MEP23?


Reply to this email directly or view it on GitHub
#4146 (comment)
.

@efiring
Copy link
Member

efiring commented Mar 1, 2015

This can be reopened if there is sufficient disagreement; but I am closing it now on the grounds that we don't want to commit to supporting a pickle-based API. I have also closed #3483.

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.

Cannot properly reload figure that was previously pickled
4 participants