From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 31 Jul 2023 18:33:32 +0000 (-0700) Subject: [3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (GH-107509) X-Git-Tag: v3.12.0rc1~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (GH-107509) gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (cherry picked from commit de51dede5b48ef23d7d33d92f3616824e23fd205) Co-authored-by: Jacob Walls --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index fe912e8422e9..d7389f696ea2 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1234,6 +1234,10 @@ Removed (Contributed by Pradyun Gedam in :gh:`95299`.) +* :mod:`enum`: Remove ``EnumMeta.__getattr__``, which is no longer needed for + enum attribute access. + (Contributed by Ethan Furman in :gh:`95083`.) + * :mod:`ftplib`: Remove the ``FTP_TLS.ssl_version`` class attribute: use the *context* parameter instead. (Contributed by Victor Stinner in :gh:`94172`.) diff --git a/Misc/NEWS.d/3.12.0a1.rst b/Misc/NEWS.d/3.12.0a1.rst index 1888cae0ba72..84036788774f 100644 --- a/Misc/NEWS.d/3.12.0a1.rst +++ b/Misc/NEWS.d/3.12.0a1.rst @@ -2752,7 +2752,7 @@ by Shin-myoung-serp. .. section: Library Add deprecation warning for enum ``member.member`` access (e.g. -``Color.RED.BLUE``). +``Color.RED.BLUE``). Remove ``EnumMeta.__getattr__``. ..