This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eric Cousineau
Recipients Eric Cousineau
Date 2021-10-20.23:27:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634772463.43.0.0723453655608.issue45546@roundup.psfhosted.org>
In-reply-to
Content
Thinking on it some more, I the current `Enum` metaclass doesn't distinguish between nested class and normal field, so it wraps it, thus why `pickle` gets confused.

Perhaps it's possible to recognize this case - the class w/ `__qualname__` can be checked to see if it's nested.

If so, then options are (a) skip wrapping the field, (b) failing fast, or (c) "no fix"?
History
Date User Action Args
2021-10-20 23:27:43Eric Cousineausetrecipients: + Eric Cousineau
2021-10-20 23:27:43Eric Cousineausetmessageid: <1634772463.43.0.0723453655608.issue45546@roundup.psfhosted.org>
2021-10-20 23:27:43Eric Cousineaulinkissue45546 messages
2021-10-20 23:27:43Eric Cousineaucreate