list index()

Carsten Haese carsten at uniqsys.com
Thu Aug 30 14:34:42 EDT 2007


On Thu, 2007-08-30 at 11:21 -0700, zzbbaadd at aol.com wrote:
> I wish they were not
> getting rid of dict.has_key() in Python 3, which I prefer to IN.

That wish will only come true if you maintain your own fork of Python 3.
has_key() will go away, period. It has been made obsolete by "in", which
is faster and more concise.

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list