Skip to content

Conversation

@ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Nov 5, 2022

i.e. ONE = auto(), 'text' will now have ONE with the value of (1, 'text'). Before it would have been (<an auto instance>, 'text')

@ethanfurman ethanfurman self-assigned this Nov 5, 2022
@ethanfurman ethanfurman added type-bug An unexpected behavior, bug, or error stdlib Standard Library Python modules in the Lib/ directory 3.11 only security fixes 3.12 only security fixes labels Nov 5, 2022
ethanfurman and others added 3 commits November 5, 2022 16:19
i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1,
'text')`.  Before it would have been `(<an auto instance>, 'text')`
@ethanfurman ethanfurman merged commit 8feb7ab into python:main Nov 6, 2022
@ethanfurman ethanfurman added the needs backport to 3.11 only security fixes label Nov 6, 2022
@miss-islington
Copy link
Contributor

Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2022
…ythonGH-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 8feb7ab)

Co-authored-by: Ethan Furman <[email protected]>
@bedevere-bot
Copy link

GH-99149 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Nov 6, 2022
miss-islington added a commit that referenced this pull request Nov 6, 2022
)

* 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 8feb7ab)

Co-authored-by: Ethan Furman <[email protected]>
@ethanfurman ethanfurman deleted the enum-fix_auto branch November 23, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.11 only security fixes 3.12 only security fixes stdlib Standard Library Python modules in the Lib/ directory type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants