5 Oct
2014
5 Oct
'14
3:04 p.m.
I don't know how unicodedata is implemented, but would it be practical to simply expose a function that iterates over every name in the database? Then you could simply do
(name for name in unicodedata.names() if name.startswith(prefix))
(unicodedata.name(c, '') for c in map(chr, range(sys.maxunicode)) if unicodedata.name(c, '').startswith(prefix))