Using dictionary to hold regex patterns?

Thomas Mlynarczyk thomas at
Tue Nov 25 18:31:46 CET 2008

John Machin schrieb:

> No, "complicated" is more related to unused features. In
> the case of using an aeroplane to transport 3 passengers 10 km along
> the autobahn, you aren't using the radar, wheel-retractability, wings,
> pressurised cabin, etc. In your original notion of using a dict in
> your lexer, you weren't using the mapping functionality of a dict at
> all. In both cases you have perplexed bystanders asking "Why use a
> plane/dict when a car/list will do the job?".

Now the matter is getting clearer in my head.

Thanks and greetings,

Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!

More information about the Python-list mailing list