DEV Community

Discussion on: Memoized Functions in Python with functools.lru_cache

Collapse
 
bowmanjd profile image
Jonathan Bowman • Edited

Good call on both counts. I have now included mention of both of the above. At this point, my treatment of LRU is inadequate, however, if the reader is hoping for a solid theoretical explanation. I hope it is adequate for practical usage, though.

Can you say more about why an understanding of LRU is important for daily usage of this Python decorator? Including usage of the max_size argument may be useful, for instance.