New submission from John Cooke <john.co...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue33880> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com