tuples, index method, Python's design
aisaac at american.edu
Sun Mar 2 19:06:32 CET 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.
- Issue #2025 : Add tuple.count() and tuple.index()
methods to comply with the collections.Sequence API.
More information about the Python-list