Message309921
PEP 526 explicitly states
"as with all dunder attributes, any undocummented use of __annotations__ is subject to breakage without warning"
I consider deleting __annotations__ to be undocumented use.
Do you really think that an obscure difference in the behaviour of
>>> class C:
... del __annotations__
... x: int
justifies an extra bytecode, but the implicit return at the end of all functions (LOAD_CONST None; RETURN_VALUE) does not? |
|
| Date |
User |
Action |
Args |
| 2018-01-14 12:56:32 | Mark.Shannon | set | recipients:
+ Mark.Shannon, gvanrossum, serhiy.storchaka, yselivanov, levkivskyi |
| 2018-01-14 12:56:32 | Mark.Shannon | set | messageid: <[email protected]> |
| 2018-01-14 12:56:32 | Mark.Shannon | link | issue32550 messages |
| 2018-01-14 12:56:31 | Mark.Shannon | create | |
|