]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Nov 2022 14:30:32 +0000 (06:30 -0800)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 14:30:32 +0000 (06:30 -0800)
commitbe4bab8c2b2e1b68b356d16fd1a48597a14a72f0
tree0b9ae981c2ce6de61d62259b9e611fcb09ae338d
parent29c3dc050a4a5e458be7a8966c028bf07502c4b6
gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)

* fix auto() failure during multiple assignment

i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1,
'text')`.  Before it would have been `(<an auto instance>, 'text')`
(cherry picked from commit 8feb7ab77c80968a6de6079299a39b0494b1701b)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2022-11-05-23-16-15.gh-issue-93464.ucd4vP.rst [new file with mode: 0644]