tuple.index()
Glenn Hutchings
zondo42 at googlemail.com
Thu Dec 14 09:03:07 EST 2006
Roberto Bonvallet wrote:
> list(my_arg).index(...)
Absolutely -- you can work around the limitation without any problems.
But the question is, why doesn't the list type share all its
non-modifying methods with the tuple type? All the previous arguments
about "homogenous" and "heterogenous" in this thread sound bogus to me.
Python is first and foremost a practical language; what lists and
tuples are supposedly "for" strikes me as being irrelevant.
Glenn
More information about the Python-list
mailing list