I'm having trouble assigning unicode strings as names for a namedtuple. This works:
a = collections.namedtuple("test", "value")
and this doesn't:
b = collections.namedtuple("βαδιζόντων", "value")
I get the error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.4/collections/__init__.py", line 370, in namedtuple
result = namespace[typename]
KeyError: 'βαδιζόντων'
Why is that the case? The documentation says, "Python 3 also supports using Unicode characters in identifiers," and the key is valid unicode?