Using dictionary to hold regex patterns?
Thomas Mlynarczyk
thomas at mlynarczyk-webdesign.de
Sun Nov 23 15:49:58 EST 2008
John Machin schrieb:
> General tip: Don't us a data structure that is more complicated than
> what you need.
Is "[ ( name, regex ), ... ]" really "simpler" than "{ name: regex, ...
}"? Intuitively, I would consider the dictionary to be the simpler
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