On 05/29/2015 02:28 PM, Jason Swails wrote:

​[...] e.g., if the person creating an Enum subclass didn't bother to correctly
implement [...] __iter__, and __len__ for their subclass

For __iter__ and __len__ to work on the Enum /class/ it must be defined in the 
metaclass.

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to