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
This seems to be a general property of builtin_function_or_methods which come in as attributes of objects. E.g., I get the error for cloudpickle.dumps(object.__new__), but no error for cloudpickle.dumps(print).
Under PyPy there is no error using cloudpickle to pickle any of these functions.
Could you please open a PR with a non-regression test and the fix? I think we just need to pass through to regular pickle when not hasattr(obj, '__code__').
Futrell
added a commit
to Futrell/cloudpickle
that referenced
this issue
Mar 9, 2016
Using cloudpickle as cloned from the repo just now, Python 2.7.11:
I get the same result on Python 3.5.1.
The text was updated successfully, but these errors were encountered: