[issue38191] typing.NamedTuple() should prefix parameters with '_'

Serhiy Storchaka report at bugs.python.org
Tue Sep 17 05:36:22 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PR 16222 adds support for arbitrary keyword argument names in NamedTuple and TypedDict. Passing arguments like "typename", "_typename", "fields" and "_fields" by keyword is still supported, but deprecated. I'm going to backport this to 3.8 and 3.7 (to 3.7 without deprecation warnings), and than convert warnings to error in master (by using positional-only parameters syntax).

----------

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


More information about the Python-bugs-list mailing list