[issue33880] namedtuple should use NFKD to find duplicate members

Raymond Hettinger report at bugs.python.org
Sun Dec 8 12:51:19 EST 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Marking as closed for the reasons listed above.

Other thoughts:
* In the class form with types.NamedTuple, no error is raised.
* In the function form with collections.namedtuple, the various
  TypeErrors and ValueErrors are just courtesy checks
  intended to provide slightly nicer error messages when possible.
  It wasn't the goal to upstage all possible syntax errors.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list