tuples, index method, Python's design
Alan Isaac
aisaac at american.edu
Sun Mar 2 13:06:32 EST 2008
On April 12th, 2007 at 10:05 PM Alan Isaac wrote:
> The avoidance of tuples, so carefully defended in other
> terms, is often rooted (I claim) in habits formed from
> need for list methods like ``index`` and ``count``.
> Indeed, I predict that Python tuples will eventually have
> these methods and that these same people will then defend
> *that* status quo.
<URL:http://python.org/download/releases/2.6/NEWS.txt>
- Issue #2025 : Add tuple.count() and tuple.index()
methods to comply with the collections.Sequence API.
Cheers,
Alan Isaac
More information about the Python-list
mailing list