
Jan. 12, 2021
4:52 p.m.
On 13/01/21 6:54 am, 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.
The cells belong to the enclosing scope, not the function that uses them. I don't think they would interfere with sharing parts of code objects between identical annotations. -- Greg