[Python-ideas] Extend unicodedata with a name search
Paul Moore
p.f.moore at gmail.com
Sat Oct 4 16:23:53 CEST 2014
On 4 October 2014 11:26, Steven D'Aprano <steve at pearwood.info> wrote:
> I don't see a use for supporting the full range of regexes. As far as I
> am concerned, globbing is complicated enough for what I need, and full
> support for arbitrary regexes is YAGNI.
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))
Paul.
More information about the Python-ideas
mailing list