On Thu, Sep 22, 2016 at 4:29 PM, אלעזר <[email protected]> wrote:
> Just as a demonstration, the parser can transform `EXP` into `lambda: EXP` > - and that's it. It will not solve everything (e.g. error messages and > .__annotation__ access as Alexander says), but it demonstrates the fact > that the change need not be so deep at all. On the second thought, why can't the parser a simply replace A with 'A' in annotations that appear in the body of class A? This will only break somewhat pathological code that defines A before it is (re)defined by the class statement.
_______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
