Re: Way for see if dict has a key



Fredrik Lundh wrote:
Bruno Desthuilliers wrote:

Seems that if "key in dict" do a simple linear search


that would be rather silly.

hint: http://pyref.infogami.com/__contains__

Of course. It's just me being silly...

:(


Thanks F
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xxxxxxxxxxx'.split('@')])"
.