summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWenzel Jakob <wenzel.jakob@epfl.ch>2022-11-30 08:33:32 (GMT)
committerGitHub <noreply@github.com>2022-11-30 08:33:32 (GMT)
commitc314198fadd3dc79ee15f375a409163d8fb33586 (patch)
tree3638e07e4a904b8b9cd53c47cbe71b096247c4f1 /Misc
parent8bb2303fd75c299d8fc85229889ac75e867c135c (diff)
downloadcpython-c314198fadd3dc79ee15f375a409163d8fb33586.zip
cpython-c314198fadd3dc79ee15f375a409163d8fb33586.tar.gz
cpython-c314198fadd3dc79ee15f375a409163d8fb33586.tar.bz2
gh-98253: Break potential reference cycles in external code worsened by typing.py lru_cache (#98591)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-10-24-11-01-05.gh-issue-98253.HVd5v4.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-10-24-11-01-05.gh-issue-98253.HVd5v4.rst b/Misc/NEWS.d/next/Library/2022-10-24-11-01-05.gh-issue-98253.HVd5v4.rst
new file mode 100644
index 0000000..00df007
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-10-24-11-01-05.gh-issue-98253.HVd5v4.rst
@@ -0,0 +1,10 @@
+The implementation of the typing module is now more resilient to reference
+leaks in binary extension modules.
+
+Previously, a reference leak in a typed C API-based extension module could leak
+internals of the typing module, which could in turn introduce leaks in
+essentially any other package with typed function signatures. Although the
+typing package is not the original source of the problem, such non-local
+dependences exacerbate debugging of large-scale projects, and the
+implementation was therefore changed to reduce harm by providing better
+isolation.