list index()

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Aug 31 21:50:46 EDT 2007


In message <mailman.156.1188498891.28954.python-list at python.org>, Carsten
Haese wrote:

> 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.

And is also a backdoor way of introducing non-virtual methods into Python,
is it not.



More information about the Python-list mailing list