]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43744: [Enum] fix ``_is_private`` (GH-25349)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 15 Apr 2021 13:58:33 +0000 (06:58 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 13:58:33 +0000 (06:58 -0700)
commitec09973f5b21d33550c834ddc89606b0e1c70ffd
tree21d1545868a0d3be55a76ed88f6514941aab74fc
parent0dca5eb54bd137ed5c6e20012fe8dddb2eadfdd7
bpo-43744: [Enum] fix ``_is_private`` (GH-25349)

``_is_private`` now returns ``False`` instead of raising an exception when enum name matches beginning of class name
as used in a private variable
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2021-04-11-20-52-32.bpo-43744.uf0E68.rst [new file with mode: 0644]