N
nicksjacobson
I haven't heard of any plans to deprecate the dictionary has_key
method, as the "in" keyword makes it obsolete.
i.e.
if key in dict:
instead of
if dict.has_key():
Is there some reason to keep has_key?
--Nick
method, as the "in" keyword makes it obsolete.
i.e.
if key in dict:
instead of
if dict.has_key():
Is there some reason to keep has_key?
--Nick