Skip to content

bpo-38565: expose typed filed for lru_cache().cache_info()#16915

Closed
Zheaoli wants to merge 3 commits into
python:masterfrom
Zheaoli:bpo-38565
Closed

bpo-38565: expose typed filed for lru_cache().cache_info()#16915
Zheaoli wants to merge 3 commits into
python:masterfrom
Zheaoli:bpo-38565

Conversation

@Zheaoli

@Zheaoli Zheaoli commented Oct 24, 2019

Copy link
Copy Markdown
Contributor

https://bugs.python.org/issue38565

expose typed filed for lru_cache().cache_info()

https://bugs.python.org/issue38565

@Zheaoli Zheaoli changed the title BPO-38565: expose typed filed for lru_cache().cache_info() bpo-38565: expose typed filed for lru_cache().cache_info() Oct 24, 2019
@rhettinger

Copy link
Copy Markdown
Contributor

This won't work. We can't change the size of returned tuples. It will break code: hits, misses, maxsize, currsize = f.cache_info()

@rhettinger rhettinger self-assigned this Oct 24, 2019
@rhettinger rhettinger closed this Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants