summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2021-05-12 00:01:44 (GMT)
committerGitHub <noreply@github.com>2021-05-12 00:01:44 (GMT)
commitd597fdc5fd0e8aa73a783fea27287db669950c15 (patch)
tree2279592f52acf02a00a412edb72ff625efac232f /Misc/NEWS.d
parente9d7f88d5643f7e6387bf994c130503766d7eb92 (diff)
downloadcpython-d597fdc5fd0e8aa73a783fea27287db669950c15.zip
cpython-d597fdc5fd0e8aa73a783fea27287db669950c15.tar.gz
cpython-d597fdc5fd0e8aa73a783fea27287db669950c15.tar.bz2
bpo-44002: Switch to lru_cache in urllib.parse. (GH-25798)
Switch to lru_cache in urllib.parse. urllib.parse now uses functool.lru_cache for its internal URL splitting and quoting caches instead of rolling its own like its the 90s. The undocumented internal Quoted class API is now deprecated as it had no reason to be public and no existing OSS users were found. The clear_cache() API remains undocumented but gets an explicit test as it is used in a few projects' (twisted, gevent) tests as well as our own regrtest.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst b/Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst
new file mode 100644
index 0000000..9d662d9
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst
@@ -0,0 +1,5 @@
+:mod:`urllib.parse` now uses :func:`functool.lru_cache` for its internal URL
+splitting and quoting caches instead of rolling its own like its the '90s.
+
+The undocumented internal :mod:`urllib.parse` ``Quoted`` class API is now
+deprecated, for removal in 3.14.