summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-11-07 18:54:36 (GMT)
committerGitHub <noreply@github.com>2023-11-07 18:54:36 (GMT)
commit2f9cb7e095370e38bde58c79c8a8ea7705eefdc2 (patch)
treefe3b2edfda6852374e8467a6682517f645f38452 /Doc/whatsnew
parent178861b19324c94d98478e4c2bba075964c3baa4 (diff)
downloadcpython-2f9cb7e095370e38bde58c79c8a8ea7705eefdc2.zip
cpython-2f9cb7e095370e38bde58c79c8a8ea7705eefdc2.tar.gz
cpython-2f9cb7e095370e38bde58c79c8a8ea7705eefdc2.tar.bz2
gh-81137: deprecate assignment of code object to a function of a mismatched type (#111823)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.13.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index cca2827..84d50a6 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -401,6 +401,12 @@ Deprecated
(as has always been the case for an executing frame).
(Contributed by Irit Katriel in :gh:`79932`.)
+* Assignment to a function's ``__code__`` attribute where the new code
+ object's type does not match the function's type, is deprecated. The
+ different types are: plain function, generator, async generator and
+ coroutine.
+ (Contributed by Irit Katriel in :gh:`81137`.)
+
Pending Removal in Python 3.14
------------------------------