
April 18, 2021
10:20 p.m.
On 4/17/21 8:43 PM, Larry Hastings wrote:
TBD: how this interacts with PEP 649. I don't know if it means we only do this, or if it would be a good idea to do both this and 649. I just haven't thought about it. (It would be a runtime error to set both "o.__str_annotations__" and "o.__co_annotations__", though.)
I thought about it some, and I think PEP 649 would still be a good idea, even if this "PEP 1212" proposal (or a variant of it) was workable and got accepted. PEP 649 solves the forward references problem for most users without the restrictions of PEP 563 (or "PEP 1212"). So most people wouldn't need to turn on the "PEP 1212" behavior. Cheers, //arry/