Skip to content

"maximum recursion depth exceeded " when serializing enum #250

@rodrigob

Description

@rodrigob

After pip2.7 install enum34 dill running the following script with python2.7

import dill
import enum

class SomeEnumType(enum.Enum):
  VALUE_A = "value_a"
  VALUE_B = "value_b"

dill.dumps(SomeEnumType.VALUE_A)

fails with
RuntimeError: maximum recursion depth exceeded while calling a Python object

the same script under python3 works fine.

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