Skip to content

Pickling error with 0.5.1. #131

@robertnishihara

Description

@robertnishihara

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.

import cloudpickle

class Foo(object):
    pass

def f():
    Foo

cloudpickle.dumps(f)

Then in a separate Python interpreter:

>>> import cloudpickle
>>> cloudpickle.loads(...the string dumped above...)
AttributeError: Can't get attribute 'Foo' on <module '__main__'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions