Multi-argument append() is illegal
quinn at pyro.ugcs.caltech.edu
Wed Mar 1 04:14:41 CET 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.
More information about the Python-list