summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2022-05-06 07:57:53 (GMT)
committerGitHub <noreply@github.com>2022-05-06 07:57:53 (GMT)
commitebaf0945f9f630f32755137a54abd0a49f068e9a (patch)
treeec1da2c8721f17b58d1f161b911ea9223275dec7 /Doc/whatsnew
parentbebb944de56883e886891b9786351ad36240d989 (diff)
downloadcpython-ebaf0945f9f630f32755137a54abd0a49f068e9a.zip
cpython-ebaf0945f9f630f32755137a54abd0a49f068e9a.tar.gz
cpython-ebaf0945f9f630f32755137a54abd0a49f068e9a.tar.bz2
GH-89519: Deprecate classmethod descriptor chaining (#92379)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 822cb8b..19ac867 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1084,6 +1084,14 @@ CPython bytecode changes
Deprecated
==========
+* Chaining :class:`classmethod` descriptors (introduced in :issue:`19072`)
+ is now deprecated. It can no longer be used to wrap other descriptors
+ such as :class:`property`. The core design of this feature was flawed
+ and caused a number of downstream problems. To "pass-through" a
+ :class:`classmethod`, consider using the ``__wrapped__`` attribute
+ that was added in Python 3.10.
+ (Contributed by Raymond Hettinger in :gh:`89519`.)
+
* Octal escapes with value larger than ``0o377`` now produce
a :exc:`DeprecationWarning`.
In a future Python version they will be a :exc:`SyntaxWarning` and