[issue23091] unpacked keyword arguments are not unicode normalized
S. Andrew Sheppard
report at bugs.python.org
Sat Dec 20 03:51:03 CET 2014
S. Andrew Sheppard added the comment:
Here's a simple namedtuple example for good measure.
from collections import namedtuple
Test = namedtuple("Test", [chr(181)])
>>> Test(**{chr(956): "test1"})
Test(µ='test1')
>>> Test(**{chr(181): "test1"})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __new__() got an unexpected keyword argument 'µ'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23091>
_______________________________________
More information about the Python-bugs-list
mailing list