]> granicus.if.org Git - python/commit
[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 12 Apr 2018 01:56:25 +0000 (18:56 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Apr 2018 01:56:25 +0000 (18:56 -0700)
commit3715176557cf87925c8f89b98939c7daf9bf48e2
treef34d24cd2a6d9a0a5a98effec1cfec3d6dad06f5
parentcbbf7461862fd1fb497ed32d09b1328250fd85c9
[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)

deprecate non-Enum lookups in Enums

Lookups such as `1 in Color` and `2 in SomeFlag()` will raise TypeError
in 3.8+.
Doc/library/enum.rst
Doc/whatsnew/3.7.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2018-04-05-13-36-09.bpo-33217.FfOKDI.rst [new file with mode: 0644]