check if the values are prensent in a list of values

Bruno Desthuilliers bdesth.quelquechose at
Tue Sep 9 19:13:35 CEST 2008

Matt Nordhoff a écrit :
> I'm not judging whether this is a good solution or not, but that's a
> silly use of a dict.

Yeps, but a somewhat common one in code predating the apparition of sets 
as builtin type.

More information about the Python-list mailing list