[New-bugs-announce] [issue33880] namedtuple should use NFKD to find duplicate members

John Cooke report at bugs.python.org
Sat Jun 16 13:12:33 EDT 2018


New submission from John Cooke <john.cooke at phonecoop.coop>:

from collections import namedtuple
# create a namedtuple whose members are:
# 00B5;MICRO SIGN;Ll;
# 03BC;GREEK SMALL LETTER MU;Ll
# these are both legal identifier names
names = ['\u00b5', '\u03bc']
for name in names:
    assert name.isidentifier()
mu = namedtuple('mu', names)

# should have raised ValueError, but instead get SyntaxError

----------
components: Library (Lib)
messages: 319763
nosy: John Cooke
priority: normal
severity: normal
status: open
title: namedtuple should use NFKD to find duplicate members
type: behavior
versions: Python 3.8

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


More information about the New-bugs-announce mailing list