Ethan Furman <et...@stoneleaf.us> added the comment:
`_name_` is only None if the entire enum value is outside any named member and `_boundary_` is `KEEP` -- so class Example(Flag, boundary=KEEP): first = auto() second = auto() third = auto() >>> Example(0) module.Example(0) >>> Example(8) module.Example(8) No need to backport. ---------- versions: -Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44929> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com