Isn't dunder-bool what you want? (dunder-nonzero in python2) Dunno if special caveats for Enums
PS sorry for phone-post -- I've broken my leg -- https://mail.python.org/mailman/listinfo/python-list
Isn't dunder-bool what you want? (dunder-nonzero in python2) Dunno if special caveats for Enums
PS sorry for phone-post -- I've broken my leg -- https://mail.python.org/mailman/listinfo/python-list