This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sobolevn
Recipients gvanrossum, kj, rhettinger, sobolevn, vanburgerberg
Date 2021-10-30.16:59:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635613160.9.0.373671075511.issue45679@roundup.psfhosted.org>
In-reply-to
Content
I see several ways of solving this:
1. Make `lru_cache(typed=True)` to look into iterable internals. This might be slow. And very slow for large iterables. Maybe even infinite for infinite ones
2. Adapt `Literal` / possibly other types to be treated differently. Because, most of the time, `Literal` take a small amount of args

I am going to send a PR with the second option.
History
Date User Action Args
2021-10-30 16:59:20sobolevnsetrecipients: + sobolevn, gvanrossum, rhettinger, kj, vanburgerberg
2021-10-30 16:59:20sobolevnsetmessageid: <1635613160.9.0.373671075511.issue45679@roundup.psfhosted.org>
2021-10-30 16:59:20sobolevnlinkissue45679 messages
2021-10-30 16:59:20sobolevncreate