[issue43957] [Enum] update __contains__ to return True for valid values

2021-05-01 Thread Ethan Furman


Change by Ethan Furman :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-05-01 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Ethan can we close this issue?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-05-01 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 9a42d5069a4c2a531076abfb198d2be26b57216c by Pablo Galindo in 
branch 'master':
bpo-43957: Add a missins space to the new format enum warning (#25770)
https://github.com/python/cpython/commit/9a42d5069a4c2a531076abfb198d2be26b57216c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal
nosy_count: 1.0 -> 2.0
pull_requests: +24463
pull_request: https://github.com/python/cpython/pull/25770

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-27 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset 6bd9288b805c765ec2433f66aa4d82e05767325f by Ethan Furman in 
branch 'master':
bpo-43957: [Enum] Deprecate ``TypeError`` from containment checks. (GH-25670)
https://github.com/python/cpython/commit/6bd9288b805c765ec2433f66aa4d82e05767325f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-27 Thread Ethan Furman


Change by Ethan Furman :


--
keywords: +patch
pull_requests: +24361
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25670

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-27 Thread Ethan Furman


New submission from Ethan Furman :

In 3.12 `__contains__` will check for both members and values:

Color.RED in Color  --> True
1 in Color  --> True
'RED' in Color  --> False

Add DeprecationWarning for now.

--
assignee: ethan.furman
messages: 392122
nosy: ethan.furman
priority: normal
severity: normal
stage: needs patch
status: open
title: [Enum] update __contains__ to return True for valid values
type: behavior
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com