summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-31 18:33:32 (GMT)
committerGitHub <noreply@github.com>2023-07-31 18:33:32 (GMT)
commit0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b (patch)
treeb84b581cce19ecdaa2a8a5fdca3b4639dd5fc786
parent5f7862dc1f0ba7e47fc01acb7f7a2e0f68176924 (diff)
downloadcpython-0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b.zip
cpython-0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b.tar.gz
cpython-0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b.tar.bz2
[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 <jacobtylerwalls@gmail.com>
-rw-r--r--Doc/whatsnew/3.12.rst4
-rw-r--r--Misc/NEWS.d/3.12.0a1.rst2
2 files changed, 5 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index fe912e8..d7389f6 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 1888cae..8403678 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__``.
..