New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
Suggestions: * Deprecate _field_types in favor of __annotations__. * Convert __annotations__ from OrderedDict to a regular dict. This will make the API cleaner. The first one will also remove a difference between NamedTuple and namedtuple(). The second is consistent with the decision to convert _asdict() to a regular dictionary since OrderedDict is no longer necessary or desirable. The second will also make the signature of __annotations__ match that from other classes. ---------- assignee: levkivskyi components: Library (Lib) messages: 338095 nosy: levkivskyi, rhettinger priority: normal severity: normal status: open title: typing.NamedTuple to switch from OrderedDict to regular dict versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36320> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com