Inada Naoki <songofaca...@gmail.com> added the comment:

I agree with Batuhan.

Although bytecode for class annotations seems inefficient, it is difficult to 
optimize without breaking backward compatibility.
You can write arbitrary code in class/module block which dynamically manipulate 
__annotations__.

```
class Foo:
    __annotations__["spam"] = "list"
    ham: tuple
```

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42525>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to