Skip to content

cloudpickle breaks isinstance #195

@bluenote10

Description

@bluenote10

Follow up to dask/distributed#2228

In [1]: import cloudpickle

In [2]: class MyObject(object):
   ...:     pass
   ...: 
   ...: 

In [3]: x = MyObject()

In [4]: x2 = cloudpickle.loads(cloudpickle.dumps(x))

In [5]: isinstance(x2, MyObject)
Out[5]: False

Using cloudpickle==0.5.5, Python 2.7.12, Ubuntu 16.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions