[Python-Dev] Re: PEP 649: Deferred Evaluation Of Annotations Using Descriptors, round 2

2021年4月12日 20:07:09 -0700

On Mon, 2021年04月12日 at 19:52 -0700, Guido van Rossum wrote:
> Why not submit a PR that adds caching to get_type_hints(), rather
> than promote a paradigm shift? 
A couple of reasons:
1. In reviewing the code, I didn't find an obvious way to store cached
values. Anything but a non-trivial change would suggest the need for a
PEP of its own to document new behavior.
2. I've been hoping that PEP 649 would be adopted, making such a hack
or any plan to cache type hints moot.
Paul
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/WP4OWWONK7Q72MRGTDGDJNTRYMCHQKZ2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to