Ken Beesley
2004-08-21 19:24:04 UTC
Newbie question: on unicodedata.name
If I do
import unicodedata
unicodedata.name(u"a")
or
unicodedata.name(u"\u0061")
I get
'LATIN SMALL LETTER A"
as expected; but when I follow that with
unicodedata.name(u"\u000a")
I get
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: no such name
There is, of course, a Unicode name for \u000a,
which is 'LINE FEED' or perhaps 'LINE FEED (A)'.
Is there a gap in unicodedata? or in my understanding?
Thanks,
Ken
If I do
import unicodedata
unicodedata.name(u"a")
or
unicodedata.name(u"\u0061")
I get
'LATIN SMALL LETTER A"
as expected; but when I follow that with
unicodedata.name(u"\u000a")
I get
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: no such name
There is, of course, a Unicode name for \u000a,
which is 'LINE FEED' or perhaps 'LINE FEED (A)'.
Is there a gap in unicodedata? or in my understanding?
Thanks,
Ken