> On 21 Jul 2024, at 10:22, Paul Howarth <paul@xxxxxxxxxxxx> wrote: > > since enums are singletons in Python. I am not near a computer to check this. The enum is a singleton. But I am not sure that the values of an enum are singletons. Often they are int and int’s are not singletons. Int’s being usable with “is” is a side effect of cpython’s implementation which make small int’s seem to be singletons. If this is correct then the test is wrong and must use ==. I will test tomorrow. Barry -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue