diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-17 18:22:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-17 18:22:00 (GMT) |
commit | 2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d (patch) | |
tree | f92bdc27f3280f735b5d986bc30ef1e97e65430e /Misc/NEWS.d/next/Library | |
parent | b57481318e3e3cbacd398b898f9849ec8f2d7eec (diff) | |
download | cpython-2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d.zip cpython-2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d.tar.gz cpython-2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d.tar.bz2 |
bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222)
This includes such names as "cls", "self", "typename", "_typename",
"fields" and "_fields".
Passing positional arguments by keyword is deprecated.
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-09-17-12-28-27.bpo-38191.1TU0HV.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-09-17-12-28-27.bpo-38191.1TU0HV.rst b/Misc/NEWS.d/next/Library/2019-09-17-12-28-27.bpo-38191.1TU0HV.rst new file mode 100644 index 0000000..1a6de60 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-09-17-12-28-27.bpo-38191.1TU0HV.rst @@ -0,0 +1,4 @@ +Constructors of :class:`~typing.NamedTuple` and :class:`~typing.TypedDict` +types now accept arbitrary keyword argument names, including "cls", "self", +"typename", "_typename", "fields" and "_fields". Passing positional +arguments by keyword is deprecated. |