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?
Paul
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/VWY42HWKA5LQ7BZ7VROCEDWVYHWELSBI/ Code of Conduct: http://python.org/psf/codeofconduct/