[New-bugs-announce] [issue44002] Use functools.lru_cache in urllib.parse instead of 1996 custom caching
Gregory P. Smith
report at bugs.python.org
Sat May 1 14:17:15 EDT 2021
New submission from Gregory P. Smith <greg at krypto.org>:
`urllib.parse` has custom caching code for both `urlsplit()` and `quote()`. From 1996.
with a truthful comment added by Nick in 2010 that we should just use functools.lru_cache.
time to clean up this cruft and do that.
I'm waiting for after the 3.10 cut and a still in progress urllib.parse security fix to land before rebasing my soon to be attached PR to avoid code conflicts.
components: Library (Lib)
title: Use functools.lru_cache in urllib.parse instead of 1996 custom caching
versions: Python 3.11
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce