summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-03-18 16:53:56 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-18 16:53:56 (GMT)
commitf7b57df0c09c3a04ab27ba06eb2feb989bbb16cb (patch)
tree4c0a5cadcbb66984786e76ccb959c4b2a76c90a6 /Misc
parent1be0d1135f5627d0525eab635cf2da441d9cbc08 (diff)
downloadcpython-f7b57df0c09c3a04ab27ba06eb2feb989bbb16cb.zip
cpython-f7b57df0c09c3a04ab27ba06eb2feb989bbb16cb.tar.gz
cpython-f7b57df0c09c3a04ab27ba06eb2feb989bbb16cb.tar.bz2
bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (GH-12396)
Also, deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*. https://bugs.python.org/issue36320
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-03-18-01-08-14.bpo-36320.-06b9_.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-03-18-01-08-14.bpo-36320.-06b9_.rst b/Misc/NEWS.d/next/Library/2019-03-18-01-08-14.bpo-36320.-06b9_.rst
new file mode 100644
index 0000000..9e9495f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-03-18-01-08-14.bpo-36320.-06b9_.rst
@@ -0,0 +1,3 @@
+The typing.NamedTuple() class has deprecated the _field_types attribute in
+favor of the __annotations__ attribute which carried the same information.
+Also, both attributes were converted from OrderedDict to a regular dict.