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 ethan.furman
Recipients Antony.Lee, bup, ethan.furman, josh.r
Date 2020-09-13.00:02:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599955325.94.0.694963361782.issue34750@roundup.psfhosted.org>
In-reply-to
Content
Antony,

My apologies for the delay.

What I would like to see is a real example of how you would use this new feature if it were implemented.  I'm guessing it would look something like:

    class MyEnum(Enum):

        locals.update(*some magic here*)

        def a_method(self):
            ...

Am I right?  If yes, what does *some magic here* look like?  If no, what would your code actually look like?
History
Date User Action Args
2020-09-13 00:02:05ethan.furmansetrecipients: + ethan.furman, Antony.Lee, josh.r, bup
2020-09-13 00:02:05ethan.furmansetmessageid: <1599955325.94.0.694963361782.issue34750@roundup.psfhosted.org>
2020-09-13 00:02:05ethan.furmanlinkissue34750 messages
2020-09-13 00:02:05ethan.furmancreate