Skip to content
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

raise NotImplementedError when trying to pickle extension objects (issue #602) #604

Merged
merged 5 commits into from
Nov 8, 2016

Conversation

jswhit
Copy link
Collaborator

@jswhit jswhit commented Nov 7, 2016

No description provided.

@@ -5700,6 +5720,9 @@ class _Dimension(object):
return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self))
else:
return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self))
def __reduce__(self):
# raise error is user tries to pickle a MFDataset object.
raise NotImplementedError('MFDataset is not picklable')
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is actually on _Dimension, not MFDataset

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

right - fixed now.

@jswhit jswhit merged commit d88be75 into master Nov 8, 2016
@jswhit jswhit deleted the pickle_error branch November 8, 2016 17:19
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