[Python-checkins] [3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (GH-107509)
ethanfurman
webhook-mailer at python.org
Mon Jul 31 14:33:36 EDT 2023
https://github.com/python/cpython/commit/0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b
commit: 0fbe69fc41dd2e0bcbe4ab68fc82b727a4cc607b
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2023-07-31T11:33:32-07:00
summary:
[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 at gmail.com>
files:
M Doc/whatsnew/3.12.rst
M Misc/NEWS.d/3.12.0a1.rst
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index fe912e8422e9e..d7389f696ea2e 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 1888cae0ba720..84036788774f7 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__``.
..
More information about the Python-checkins
mailing list