]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44002: Switch to lru_cache in urllib.parse. (GH-25798)
authorGregory P. Smith <greg@krypto.org>
Wed, 12 May 2021 00:01:44 +0000 (17:01 -0700)
committerGitHub <noreply@github.com>
Wed, 12 May 2021 00:01:44 +0000 (17:01 -0700)
commitd597fdc5fd0e8aa73a783fea27287db669950c15
tree2279592f52acf02a00a412edb72ff625efac232f
parente9d7f88d5643f7e6387bf994c130503766d7eb92
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.
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Library/2021-05-01-15-43-37.bpo-44002.KLT_wd.rst [new file with mode: 0644]