cannot pickle classes created by make_enum
Bug #734789 reported by
Alexandre PIGNÉ
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.enum |
Won't Fix
|
Low
|
Barry Warsaw |
Bug Description
Pickle refuses to pickle & unpickle make_enum returned classes.
Error:
PicklingError: Can't pickle <Fruit2 {kiwi: 1, banana: 2, tomato: 3}>: it's not found as flufl.enum._
enum.Fruit2
Changed in flufl.enum: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in flufl.enum: | |
assignee: | nobody → Barry Warsaw (barry) |
milestone: | none → 3.3 |
status: | Triaged → Confirmed |
To post a comment you must log in.
Use the module scope of the previous frame to attach the generated object