[New-bugs-announce] [issue26521] add `extend_enum` to Enum

Ethan Furman report at bugs.python.org
Wed Mar 9 13:57:36 EST 2016

New submission from Ethan Furman:

In this SO question [1] the OP has a need to generate an Enum lazily.  I created an `extend_enum` function to do so.  By the time I was done I realized I would not want anyone to have to create that function by hand, nor keep it up to date (should we ever change the implementation details).

Should we add this to the stdlib?  Note that this does not change anything about subclassing Enum.

[1] http://stackoverflow.com/q/28126314/208880

assignee: ethan.furman
messages: 261464
nosy: barry, eli.bendersky, ethan.furman
priority: low
severity: normal
status: open
title: add `extend_enum` to Enum
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list