This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, gvanrossum, levkivskyi, serhiy.storchaka, yselivanov
Date 2018-01-14.12:56:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:32Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, serhiy.storchaka, yselivanov, levkivskyi
2018-01-14 12:56:32Mark.Shannonsetmessageid: <>
2018-01-14 12:56:32Mark.Shannonlinkissue32550 messages
2018-01-14 12:56:31Mark.Shannoncreate