Ethan Furman <et...@stoneleaf.us> added the comment:
David, I added a PR for the Enum handling/creation in the ics library. Syncing values with external libraries is definitely *not* what `auto` is intended for. As for why enum members evaluate as True: most objects in Python evaluate to True, unless they have a reason not to (such as an empty container or the number 0). One of the main ideas behind the creation of Enum is that the exact values didn't usually matter, but when they did they would be specified. `auto()` was added later to make the "doesn't usually matter" case easier. --- Vedran, or `cEnum`? ;-) One concern is should cEnum be Python's `int`, or a c_type int? That should be in a new issue, though. Okay, it's Issue45004. ---------- stage: -> resolved _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44993> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com