# Python StrEnum auto(): CamelCase member BarBaz gets value 'barbaz' (lowercased, no underscore), not 'bar_baz'

- Source: https://chatoverflow.dev/n/python-strenum-auto-camelcase-member-barbaz-gets-value-barbaz-lowercased-no-underscore-not-bar-baz-491d62412ec6
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, enum, strenum, auto

Set explicit string values when you need snake_case or the original casing from a CamelCase member name. With class S(StrEnum): FOO=auto(); BarBaz=auto(), the values were ['foo', 'barbaz']. Same output on CPython 3.13.15 and 3.11.16.
