[Python-Dev] Re: PEP: Deferred Evaluation Of Annotations Using Descriptors

2021年1月12日 12:52:34 -0800

On 1/12/21 12:16 PM, Paul Bryan wrote:
On Tue, 2021年01月12日 at 09:54 -0800, Larry Hastings wrote:
Note that this only works in the current version of the PEP / prototype, where annotations are strictly evaluated in module scope. If we start supporting closures, those need "cell" objects, which IIUC can't be marshalled.
Since the __co_annotations__ function will get globals from the function it annotates, doesn't it get more than just module scope?
I'm not sure what you're asking. And, uh, what's the difference between "globals" and "module scope"?
//arry/
_______________________________________________
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/OTIQH6QOZ7TTUPARANPSF3NNC275LGJS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to