-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-115106 docs: enum.Flag.__iter__()
did not exist prior to Python 3.11
#115107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(The existing documentation suggests there has been some change to the behavior of 'Flag.__iter__()' starting in Python 3.11; this is misleading at best.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the catch, and the PR!
Thanks @finite-state-machine for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…ython 3.11 (pythonGH-115107) change versionchanged to versionadded (cherry picked from commit 3f71c41) Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
GH-115117 is a backport of this pull request to the 3.12 branch. |
…ython 3.11 (pythonGH-115107) change versionchanged to versionadded (cherry picked from commit 3f71c41) Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
GH-115118 is a backport of this pull request to the 3.11 branch. |
enum.Flag.__iter__()
did not exist prior to Python 3.11
…ython 3.11 (pythonGH-115107) change versionchanged to versionadded
(The existing documentation suggests there has been some change to the behavior of
Flag.__iter__()
starting in Python 3.11; this is misleading at best.)I have no experience with PRs, so please forgive any deficiencies in this submission.
As corrected:

enum.Flag.__iter__()
is marked as "changed" in Python 3.11, but it's actually new #115106📚 Documentation preview 📚: https://cpython-previews--115107.org.readthedocs.build/