Regular expression as dictionary key?
Luke
LLoeffler at home.com
Mon Dec 3 13:06:41 EST 2001
> I suspect though that you really just want a way to use a
> regular expression as a key, and created this singular/plural
> example as justification.
Yes and no. This is one of many possible applications. The plural
search is a naive example, but for this application doesn't need to be
excat either since the results are fuzzy anyway.
I suppose plodding through 10,000 or so keys won't slow things down
horribly. I'll come up with a tree or build some caching scheme if
things get too bad.
I've got some C to read now.
L
More information about the Python-list
mailing list