diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2022-11-06 01:01:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 01:01:08 (GMT) |
commit | 8feb7ab77c80968a6de6079299a39b0494b1701b (patch) | |
tree | 8e045f6d6400930064f04a5d4a11ab1209a22050 /Misc | |
parent | 586b07e1f9f15825e6564df031744fe812b28655 (diff) | |
download | cpython-8feb7ab77c80968a6de6079299a39b0494b1701b.zip cpython-8feb7ab77c80968a6de6079299a39b0494b1701b.tar.gz cpython-8feb7ab77c80968a6de6079299a39b0494b1701b.tar.bz2 |
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')`
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-11-05-23-16-15.gh-issue-93464.ucd4vP.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-11-05-23-16-15.gh-issue-93464.ucd4vP.rst b/Misc/NEWS.d/next/Library/2022-11-05-23-16-15.gh-issue-93464.ucd4vP.rst new file mode 100644 index 0000000..6393ec6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-11-05-23-16-15.gh-issue-93464.ucd4vP.rst @@ -0,0 +1 @@ +``enum.auto()`` is now correctly activated when combined with other assignment values. E.g. ``ONE = auto(), 'some text'`` will now evaluate as ``(1, 'some text')``. |