[New-bugs-announce] [issue42662] Propose: Data model explict about __annotations__ key ordering.

Paul Bryan report at bugs.python.org
Wed Dec 16 15:51:41 EST 2020


New submission from Paul Bryan <pbryan at anode.ca>:

Currently the data model documentation does not specify the order of keys in __annotations__ dictionary. It is currently in the order that arguments or attributes are declared. I propose to make this explicit.

Rationale: Having order explicitly specified in the documentation makes it a documented feature that code can depend on. Current code cannot safely rely on this behavior.

----------
assignee: docs at python
components: Documentation
messages: 383204
nosy: docs at python, pbryan
priority: normal
severity: normal
status: open
title: Propose: Data model explict about __annotations__ key ordering.
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42662>
_______________________________________


More information about the New-bugs-announce mailing list