tuples, index method, Python's design
"Martin v. Löwis"
martin at v.loewis.de
Sat Apr 14 03:27:20 EDT 2007
> The use case has already been discussed. Removing the pointless
> inconsistency between lists and tuples means you can stop having to
> remember it, so you can free up brain cells for implementing useful
> things. That increases your programming productivity.
So to increase consistency, the .index method should be removed
from lists, as well, IMO. If you find yourself doing a linear
search, something is wrong.
Regards,
Martin
More information about the Python-list
mailing list