General question about Python design goals

Antoon Pardon apardon at forel.vub.ac.be
Tue Nov 29 03:27:43 EST 2005


On 2005-11-28, Duncan Booth <duncan.booth at invalid.invalid> wrote:
> Antoon Pardon wrote:
>
>> 
>> No I gave an example, you would implement differently. But even
>> if you think my example is bad, that would make it a bad argument
>> for tuples having list methods. That is not the same as being
>> a good argument against tuples having list methods. 
>
> Tuples don't have list methods, therefore any code which seems to require a 
> tuple with list methods should make you stop and consider whether your 
> design is wrong.

IMO that is a non-sequitur, because that makes what is good or bad
design dependand on the language used.

If I have a design that seems to require tuples with a count method,
then wether that is a good or bad design doesn't depend on
whether or not python allows that or not.

-- 
Antoon Pardon



More information about the Python-list mailing list