Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
bpo-45679: Do not cachetyping.Literal with more than one type arg#29333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
You actually just make_tp_cache(typed=True) a no-op, but in complex way.
Do not change_tp_cache, change_LiteralSpecialForm.__getitem__ andLiteral.
serhiy-storchaka commentedOct 30, 2021
And it is expected that the cache is always enabled. See alternative PR#29334. |
sobolevn commentedOct 30, 2021
Yeap, thanks! A bit sad, that I was not quick enough to send a corrected version. |
Uh oh!
There was an error while loading.Please reload this page.
https://bugs.python.org/issue45679