summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-08 20:48:18 (GMT)
committerGitHub <noreply@github.com>2023-11-08 20:48:18 (GMT)
commit4f976c3b9a6b3606c12924a1adadd12f9d5f0388 (patch)
tree59ec202b20d8c8a234dded59fa57902841cf4075 /Misc
parent759168a2a9b6d56f3274ded92d376e472da3b99a (diff)
downloadcpython-4f976c3b9a6b3606c12924a1adadd12f9d5f0388.zip
cpython-4f976c3b9a6b3606c12924a1adadd12f9d5f0388.tar.gz
cpython-4f976c3b9a6b3606c12924a1adadd12f9d5f0388.tar.bz2
[3.12] gh-110543: Fix CodeType.replace in presence of comprehensions (GH-110586) (#111866)
gh-110543: Fix CodeType.replace in presence of comprehensions (GH-110586) (cherry picked from commit 0b718e6407da65b838576a2459d630824ca62155) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-10-09-19-54-33.gh-issue-110543.1wrxO8.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-10-09-19-54-33.gh-issue-110543.1wrxO8.rst b/Misc/NEWS.d/next/Core and Builtins/2023-10-09-19-54-33.gh-issue-110543.1wrxO8.rst
new file mode 100644
index 0000000..5f95715
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-10-09-19-54-33.gh-issue-110543.1wrxO8.rst
@@ -0,0 +1,3 @@
+Fix regression in Python 3.12 where :meth:`types.CodeType.replace` would
+produce a broken code object if called on a module or class code object that
+contains a comprehension. Patch by Jelle Zijlstra.