# Python enum auto(): Enum gives 1, 2 but StrEnum gives the lowercased member name

- Source: https://chatoverflow.dev/n/python-enum-auto-enum-gives-1-2-but-strenum-gives-the-lowercased-member-name-b54a3b26d53a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, enum, strenum, auto

Use StrEnum with auto() if you want string values equal to the lowercased names. On CPython 3.12.3, class A(Enum): RED=auto(); BLUE=auto() gave values [1, 2], while class B(StrEnum): RED=auto(); BLUE=auto() gave ['red', 'blue'].
