[issue12254] PEP-3107 has a wrong attribute name for function annotations

New submission from Roman Alexeev <letit.bee@gmail.com>: The name of the attribute holding annotations is `__annotations__`, not `func_annotations` as PEP-3107 says. ---------- assignee: docs@python components: Documentation messages: 137532 nosy: Roman.Alexeev, docs@python priority: normal severity: normal status: open title: PEP-3107 has a wrong attribute name for function annotations _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12254> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: All func_* attributes in 2.x have been given __*__ names in 3.x. ---------- nosy: +eric.araujo resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12254> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: All func_* attributes in 2.x have been given __*__ names in 3.x. ---------- nosy: +eric.araujo resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12254> _______________________________________
participants (2)
-
Roman Alexeev
-
Éric Araujo