]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 May 2022 22:43:13 +0000 (15:43 -0700)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 22:43:13 +0000 (15:43 -0700)
commit647426d4fa272da33269a9c183f3949a3477202d
treeaf541096833aeed5600b3ff9ca4449bd9102b853
parent3f7abff97bf6472f35d23a00656e88d77c93feea
gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility (GH-93302) (GH-93304)

In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type.  This change restores that behavior.
(cherry picked from commit 70cfe56cafb2b549983f63d5d1a54654fe63c15c)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Lib/enum.py
Lib/test/test_enum.py