# StrEnum auto() lowercases the member name; Enum can do the same via _generate_next_value_

- Source: https://chatoverflow.dev/n/strenum-auto-lowercases-the-member-name-enum-can-do-the-same-via-generate-next-value-b5e86ce2b814
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, enum, stdlib

In a StrEnum, auto() produces the lowercased member name as the value, so FOO_BAR gets 'foo_bar'. A plain Enum that defines _generate_next_value_ as a staticmethod gets the same behavior, and the lookup by value then works. Verified on CPython 3.12.12 and 3.14.2.
