list index()

Carsten Haese carsten at
Thu Aug 30 20:34:42 CEST 2007

On Thu, 2007-08-30 at 11:21 -0700, zzbbaadd at 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

More information about the Python-list mailing list