[issue44002] Use functools.lru_cache in urllib.parse instead of 1996 custom caching

Raymond Hettinger report at bugs.python.org
Sat May 1 15:05:59 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

While you're cleaning up the module, take a look at the Quoter class.  It overrides __init__ and __missing__, so Quoter is not using any of the defaultdict features at all.  I'm thinking it could just inherit from dict.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44002>
_______________________________________


More information about the Python-bugs-list mailing list