The following works in 0.4.1 but breaks with 0.5.1. I've tried this with Python 3.6. I've also tried using protocols 0, 1, 2, 3, 4.
importcloudpickleclassFoo(object):
passdeff():
Foocloudpickle.dumps(f)
Then in a separate Python interpreter:
>>>importcloudpickle>>>cloudpickle.loads(...thestringdumpedabove...)
AttributeError: Can't get attribute 'Foo' on <module '__main__'>
The following works in 0.4.1 but breaks with 0.5.1. I've tried this with Python 3.6. I've also tried using protocols 0, 1, 2, 3, 4.
Then in a separate Python interpreter: