]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility (GH...
authorEthan Furman <ethan@stoneleaf.us>
Fri, 27 May 2022 22:14:28 +0000 (15:14 -0700)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 22:14:28 +0000 (15:14 -0700)
commit70cfe56cafb2b549983f63d5d1a54654fe63c15c
treef1be9efa8ae89b95c27236a0ea6ffe63afd4ce48
parent711eda7dec1f62ecb2a87b274b5f6bfc2b6fbef4
gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility (GH-93302)

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.
Lib/enum.py
Lib/test/test_enum.py