Comment on PEP-0322: Reverse Iteration Methods

David Abrahams dave at boost-consulting.com
Fri Sep 26 14:51:05 EDT 2003


Alex Martelli <aleax at aleax.it> writes:

> David Abrahams wrote:
>    ...
>> Also, the idea of denying tuples the ability to reverse iterate seems
>> arbitrary and capricious.
>
> Sure, but so is denying them, e.g., non-mutating methods such as
> .index() and .count().

Not IMO. Immutability is a very useful trait.

> At least we're _consistently_ arbitrary and capricious!-)

Not in this case.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Python-list mailing list