FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-43957: [Enum] deprecate ``TypeError`` from containment checks by ethanfurman · Pull Request #25670 · python/cpython · GitHub

/ cpython Public

bpo-43957: [Enum] deprecate TypeError from containment checks - #25670

Merged
ethanfurman merged 1 commit into
python:masterfrom
ethanfurman:enum-contains
Apr 27, 2021
Merged

bpo-43957: [Enum] deprecate TypeError from containment checks#25670
ethanfurman merged 1 commit into
python:masterfrom
ethanfurman:enum-contains

Conversation

ethanfurman commented Apr 27, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

In 3.12 True or False will be returned for all containment checks,
with True being returned if the value is either a member of that enum
or one of its members' value.

https://bugs.python.org/issue42957

In 3.12 ``True`` or ``False`` will be returned for all containment checks,
with ``True`` being returned if the value is either a member of that enum
or one of its members' value.

zooba commented Apr 27, 2021

Copy link
Copy Markdown
Member

I'm not sure what the actual bug number for this is, but it isn't 42957.

(Note that even if you rename the issue, if there's only one commit then the "merge" button will default to that commit message rather than taking the bug number from the title.)

ethanfurman changed the title bpo-42957: [Enum] deprecate TypeError from containment checks bpo-43957: [Enum] deprecate TypeError from containment checks Apr 27, 2021

Copy link
Copy Markdown
Member Author

@zooba Thanks, title fixed.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL