]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)
authorEthan Furman <ethan@stoneleaf.us>
Sun, 6 Nov 2022 01:01:08 +0000 (18:01 -0700)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 01:01:08 +0000 (18:01 -0700)
commit8feb7ab77c80968a6de6079299a39b0494b1701b
tree8e045f6d6400930064f04a5d4a11ab1209a22050
parent586b07e1f9f15825e6564df031744fe812b28655
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')`
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]