]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (GH-107509)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 Jul 2023 18:33:32 +0000 (11:33 -0700)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 18:33:32 +0000 (11:33 -0700)
gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466)
(cherry picked from commit de51dede5b48ef23d7d33d92f3616824e23fd205)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Doc/whatsnew/3.12.rst
Misc/NEWS.d/3.12.0a1.rst

index fe912e8422e9ee61c9c8721bc3db2320ff4a61bc..d7389f696ea2e37a7a4ecf0ed50abd6d29603d19 100644 (file)
@@ -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`.)
index 1888cae0ba720d6d2f9afe2a3ffed9bab62cdf59..84036788774f76d5fb90d7be1fb9693a21ff6497 100644 (file)
@@ -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__``.
 
 ..