diff options
author | Gregory P. Smith <greg@krypto.org> | 2021-05-12 00:01:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 00:01:44 (GMT) |
commit | d597fdc5fd0e8aa73a783fea27287db669950c15 (patch) | |
tree | 2279592f52acf02a00a412edb72ff625efac232f /Misc/NEWS.d | |
parent | e9d7f88d5643f7e6387bf994c130503766d7eb92 (diff) | |
download | cpython-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.rst | 5 |
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. |