deprecation of has_key?
Denis S. Otkidach
ods at strana.ru
Thu Apr 21 11:03:47 EDT 2005
On Thu, 21 Apr 2005 08:50:25 -0600 Steven Bethard wrote:
SB> Huh? I'm not following your logic. Why is "item in dict" less
SB> readable than "dict.has_key(item)"? Something to do with expecting
SB> inverses that don't exist?
SB>
SB> Personally, I use "item in dict" because it's quite readable to me,
SB> and generally faster.
For me dictionary is a collection of key-value pairs, but not a
collection of keys (that's what set is).
--
Denis S. Otkidach
http://www.python.ru/ [ru]
More information about the Python-list
mailing list