New submission from brendon zhang <brendon-zh...@hotmail.com>:

Existing implementation of lru_cache user_function option supports typed_code 
argument, but does not support maxsize argument, because when we pass in the 
user function as a positional argument, it gets assigned to the maxsize 
parameter, and therefore there is no way to pass the actual maxsize value.

The PR implementation supports both signatures
lru_cache(maxsize=128, typed=False)
lru_cache(user_function, maxsize=128, typed=False)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40114>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to