I believe that is the core question. In my use case it caused a bug because I accidentally typed "Enum" instead of "MyEnum" and the "len" worked, which is something I did not expect. However I do not know how prevalent this mistake is. _______________________________________________ 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/5QNBEUUFXR4JQ6THYD6ND5YZIHBSHJCZ/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] len(Enum) should raise TypeE... Richard Hajek
- [Python-ideas] Re: len(Enum) should ra... Benedict Verhegghe
- [Python-ideas] Re: len(Enum) shoul... Greg Ewing
- [Python-ideas] Re: len(Enum) s... Chris Angelico
- [Python-ideas] Re: len(Enu... Richard Hajek
- [Python-ideas] Re: len(Enum) s... Benedict Verhegghe
- [Python-ideas] Re: len(Enu... Chris Angelico
- [Python-ideas] Re: le... Benedict Verhegghe
- [Python-ideas] Re... Chris Angelico
- [Python-ideas... Richard Hajek
- [Python-ideas... James Addison via Python-ideas
- [Python-ideas... Jonathan Fine
- [Python-ideas... Richard Hajek
- [Python-ideas... Thomas Grainger
- [Python-ideas] Re: len(Enum) should ra... Ethan Furman