On Tue, 20 Dec 2022 at 07:13, Brendan Barnwell <brenb...@brenbarn.net> wrote: > > See my example regarding a StrEnum and tell me whether that would be > > more irritating. > > I can't run that example myself as I don't have Python 3.11 set up.
The enum module was added in Python 3.4. Nonetheless, a StrEnum is absolutely a str, and whatever you say about an HTML string has to also be valid for a StrEnum, or else the inverse is. The way things are, a StrEnum or an HTML string will behave *exactly as a string does*. The alternative is that, if any new operations are added to strings in the future, they have to be explicitly blocked by StrEnum or else they will randomly and mysteriously misbehave - or, at very best, crash with unexpected errors. Which one is more hostile to subclasses? ChrisA _______________________________________________ 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/FAAYN7V6A26FYL6XGIOMHANDCBDXRATH/ Code of Conduct: http://python.org/psf/codeofconduct/