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 ncoghlan
Recipients alex, barry, docs@python, eli.bendersky, ethan.furman, ezio.melotti, ncoghlan, zach.ware
Date 2013-05-11.13:58:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368280724.65.0.936927151551.issue17947@psf.upfronthosting.co.za>
In-reply-to
Content
The accepted PEP states that the frame hack should be removed: "To support pickling of these enums, the module name can be specified using the module keyword-only argument."

Ergo, if you don't specify it, they cannot be pickled. Explicit is better than implicit, and this hack should not propagate beyond namedtuple (it should actually be deprecated in namedtuple as well).

As far as the second point goes, I had already reviewed the PEP implementation before making the comment (that's why I am reasonably sure you can already do it just by overriding _get_mixins). I see it as similar to the changes that were already made to support autonumbered subtypes.

However, also note that I said we should wait before doing anything about providing a supported mechanism for that customisation. I've now created issue 17954 to cover a possible refactoring and documentation of that part of the implementation.
History
Date User Action Args
2013-05-11 13:58:44ncoghlansetrecipients: + ncoghlan, barry, ezio.melotti, alex, eli.bendersky, docs@python, ethan.furman, zach.ware
2013-05-11 13:58:44ncoghlansetmessageid: <1368280724.65.0.936927151551.issue17947@psf.upfronthosting.co.za>
2013-05-11 13:58:44ncoghlanlinkissue17947 messages
2013-05-11 13:58:44ncoghlancreate