Skip to content

Fail to (un)pickle class with abc.ABCMeta metaclass (python 2.7) #103

@AmatanHead

Description

@AmatanHead

Hello!

The current code from the master branch fails to work with classes that have the abc.ABCMeta metaclass.

MWE:

class Q(object):
    __metaclass__ = abc.ABCMeta

q = Q()
cloudpickle.loads(cloudpickle.dumps(q))

With python 2.7.3 this yields:

object.__new__(getset_descriptor) is not safe, use getset_descriptor.__new__()

With python 2.7.13:

TypeError: can't pickle wrapper_descriptor objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions