Using dictionary to hold regex patterns?
Thomas Mlynarczyk
thomas at mlynarczyk-webdesign.de
Mon Nov 24 12:13:22 EST 2008
Dennis Lee Bieber schrieb:
>> Is "[ ( name, regex ), ... ]" really "simpler" than "{ name: regex, ...
>> }"? Intuitively, I would consider the dictionary to be the simpler
>> structure.
> Why, when you aren't /using/ the name to retrieve the expression...
So as soon as I start retrieving a regex by its name, the dict will be
the most suitable structure?
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
More information about the Python-list
mailing list