Multi-argument append() is illegal

Quinn Dunkan quinn at pyro.ugcs.caltech.edu
Tue Feb 29 22:14:41 EST 2000


On Tue, 29 Feb 2000 04:25:03 -0500, Tim Peters <tim_one at email.msn.com> wrote:
>[Guido van Rossum]
>> I am going to rectify this in Python 1.6 -- people coming from other
>> languages might well expect list.append(a, b, c) to mean the same as
>> list.append(a); list.append(b); list.append(c), and it's always been
>> my philosophy to make ambiguous syntax illegal rather than to pick one
>> interpretation randomly.
>
>Before anyone starts <wink>, protesting this appears to be as futile as
>griping about whitespace:  The Dictator Has Spoken here.  It's been broken
>forever and needs to get fixed.

I for one am not going to protest.  Thank you Guido!  That little
inconsistency has been under my skin ever since I noticed its existence.
Nice to see that Guido has the courage to fix something that needs to be fixed
at the cost of possibly breaking some badly written code.

better-now-than-when-python-rules-the-world-ly y'rs



More information about the Python-list mailing list