Pythonic way for missing dict keys

Rustom Mody rustompmody at gmail.com
Fri Jul 20 23:52:32 EDT 2007


Can someone who knows about python internals throw some light on why
>>> x in dic
is cheaper than
>>> dic.has_key(x)

??



More information about the Python-list mailing list