Message405377
I agree. lru_cache(typed=True) itself should not look into iterable internals. It would be not only slow, but a change of semantic.
The simplest way to solve this issue is to remove caching of __getitem__(). The more sophisticated way is to move caching to lower level and apply it to a function with a var-positional parameter. |
|
Date |
User |
Action |
Args |
2021-10-30 17:23:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, rhettinger, sobolevn, kj, vanburgerberg |
2021-10-30 17:23:16 | serhiy.storchaka | set | messageid: <1635614596.29.0.846970170317.issue45679@roundup.psfhosted.org> |
2021-10-30 17:23:16 | serhiy.storchaka | link | issue45679 messages |
2021-10-30 17:23:16 | serhiy.storchaka | create | |
|