Andrew Barnert wrote: > On Oct 20, 2019, at 03:36, Steve Jorgensen ste...@stevej.name wrote: > Maybe the additional functionality in Enum gets in your way for some reason I > don’t > understand, that doesn’t affect other people who want Django choices. But > otherwise, I > don’t see how it really is any different. > And again, none of this different-from-Enum behavior is relevant to your > problem > anyway. The fact that you think it is, and think it can’t be done with Enum, > makes it > harder to understand where the actual problem is. Maybe you’re not just > trying to do the > same magic that all the autoenum/simplenum/etc. packages on PyPI and the PoC > code from the > PEP and the section in Nick’s blog post all do (in a couple different ways), > or maybe it’s > insufficiently magic for your purposes, but without knowing how and why it’s > different or > insufficient it’s impossible to know whether there’s an actual limitation to > fix in > Python, or just a problem in your design or implementation that could be > easily fixed to > work in existing Python.
I had obviously had only skimmed the info on `Enum`. I was not really aware of it before it was mentioned in reply to my request. I have probably just misunderstood what enum does or does not do and should dig into it some more. I will do that next. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BPG6KSFN2IZUTST7WLP2K6KJ4DZQ6LEM/ Code of Conduct: http://python.org/psf/codeofconduct/