You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to pickle the below class, it is failing with NotImplementedError then it calls the exception, since NotImplemented error is a subclass of RuntimeError, the above code fails during except since e.args is empty.
with io.BytesIO() as file:
pickler = cloudpickle.CloudPickler(file)
pickler.dump(_Unpicklable(1))
class _Unpicklable(object):
def __init__(self, value):
self.value = value
def __eq__(self, other):
return self.value == other.value
def __getstate__(self):
raise NotImplementedError()
def __setstate__(self, state):
raise NotImplementedError()
The text was updated successfully, but these errors were encountered:
The error happens at
cloudpickle/cloudpickle/cloudpickle_fast.py
Line 634 in a76f081
When I try to pickle the below class, it is failing with
NotImplementedError
then it calls the exception, sinceNotImplemented
error is a subclass ofRuntimeError
, the above code fails duringexcept
sincee.args
is empty.The text was updated successfully, but these errors were encountered: