Suggestion: make sequence and map interfaces more similar

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Mar 30 16:36:59 EDT 2016


On 30/03/2016 21:00, Marco Sulla via Python-list wrote:
> Let me also add that even if it seems that my idea will not break any
> official contracts, I can create a new ABC class and let maps and
> sequence types inherit from it. IMHO it's absolutely not needed, but
> at least the discussion will be no more distracted my secondary
> considerations, since the main topic is about the usefulness and the
> advantage to have a base contract for maps and sequences.

1) maps ain't sequences, sequences ain't maps, and never the twain shall 
meet.
2) if it ain't broke, don't fix it.
3) KISS

>
> PS: I intend to write:
> You've demonstrated to be a fair thinker, so do not fall into
> temptation to play with
> words.

No idea at all what you mean by this, please explain.

> My English is terrible as much as StrangeDict code.
>

StrangeDict broke "Practicality beats purity", no further comment needed.

-- 
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