From 39c5a5c25d4f7d5b70c8f7049019f7c4a44ee461 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 30 Jul 2023 15:53:53 -0400 Subject: [PATCH] gh-106762: Add news for `EnumMeta.__getattr__` removal --- Doc/whatsnew/3.12.rst | 4 ++++ Misc/NEWS.d/3.12.0a1.rst | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 99500e1f321468..0ac4a3df8fefa3 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 40f6a6cb430d35..5178f4055e7b8e 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__``. ..