Suggestion: make sequence and map interfaces more similar

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Mar 30 16:31:21 EDT 2016


On 30/03/2016 20:35, Marco Sulla via Python-list wrote:
> On 30 March 2016 at 02:55, Terry Reedy <tjreedy at udel.edu> wrote:
>> To me [seq.items() and seq.keys()] are useless and confusing duplications since enumerate()(seq)
>> and range(len(seq)) are quite different from dict.items and dict.keys.
>
> It's true. Indeed IMHO it's enumerate() that will be a confusing duplication.
>

Please explain how a builtin that was brought in due to popular demand 
can be a "confusing duplication".

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list