unicode encoding usablilty problem
Alexander Schremmer
2004b at usenet.alexanderweb.de
Sat Feb 19 11:12:55 EST 2005
On Fri, 18 Feb 2005 21:43:52 +0100, Thomas Heller wrote:
>> Eventually, the primary string type should be the Unicode
>> string. If you are curious how far we are still off that goal,
>> just try running your program with the -U option.
>
> Not very far - can't even call functions ;-)
>
>>>> def f(**kw):
> ... pass
> ...
>>>> f(**{"a": 0})
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: f() keywords must be strings
That is possible:
>>> f(**{chr(ord("a")): 0})
>>>
WFM. SCNR,
Alexander
More information about the Python-list
mailing list