[issue46622] Add an async variant of lru_cache for coroutines.

Tzu-ping Chung report at bugs.python.org
Wed Feb 23 08:47:58 EST 2022


Tzu-ping Chung <uranusjr at gmail.com> added the comment:

Another thing to point out is that existing third-party solutions (both alru_cache and cached_property) only work for asyncio, and the stdlib version (as implemented now) will be an improvement. And if the position is that the improvements should only be submitted to third-party solutions---I would need to disagree since both lru_cache and cached_property have third-party solutions predating their stdlib implementations, and it is double-standard IMO if an async solution is kept out while the sync version is kept in.

----------

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


More information about the Python-bugs-list mailing list