◐ Shell
clean mode source ↗

bpo-44002: Switch to lru_cache in urllib.parse. by gpshead · Pull Request #25798 · python/cpython

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 and clear_cache() APIs are now
deprecated, for removal in 3.14.

rhettinger

rhettinger

rhettinger

@gpshead

gpshead

@gpshead

serhiy-storchaka

@gpshead

twisted, gevent, and our own libregrtest use it in test suites.  We'll
keep it for them.

... and skip Pending on Quoter's DeprecationWarning.  No uses of that have
been found externally.

Also reoragnizes the unittest a bit to be cleaner and fixes a whitespace
problem.

akulakov

serhiy-storchaka

@gpshead gpshead deleted the non-90s-urlparse-cache branch

May 12, 2021 00:01