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.

classification
Title: PEP-3107 has a wrong attribute name for function annotations
Type: Stage: resolved
Components: Documentation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Roman.Alexeev, docs@python, eric.araujo
Priority: normal Keywords:

Created on 2011-06-03 15:47 by Roman.Alexeev, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg137532 - (view) Author: Roman Alexeev (Roman.Alexeev) Date: 2011-06-03 15:47
The name of the attribute holding annotations is `__annotations__`, not `func_annotations` as PEP-3107 says.
msg137555 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-03 16:55
All func_* attributes in 2.x have been given __*__ names in 3.x.
History
Date User Action Args
2022-04-11 14:57:18adminsetgithub: 56463
2011-06-03 16:55:06eric.araujosetstatus: open -> closed

nosy: + eric.araujo
messages: + msg137555

resolution: not a bug
stage: resolved
2011-06-03 15:47:39Roman.Alexeevcreate