Multi-argument append() is illegal
mbel44 at dial.pipex.net
Mon Mar 27 08:15:04 CEST 2000
"Tim Peters" <tim_one at email.msn.com> wrote:
>> I don't know whether this has been mentioned, but along the same lines,
>> I noticed recently that the 'index', 'count' and 'remove' methods of
>> lists also treat multiple arguments as a tuple:
>> This probably also wants changing.
>Yes, these were disallowed by the same patch that disallowed multi-arg
>list.append. Nobody mentioned index/etc because there were no known
>instances of that in real code; multi-arg append unfortunately showed up in
>some very early modules in the std distribution, and appeared to get copied
>widely by people who listened harder to the compiler's silence than the
>documentation's screams <wink>.
Is there a complete list of every method that has been fixed by this
patch? Im now having nightmares about _every_ variable-paramater-list.
Python 1.5.2 (#0, Oct 11 1999, 09:59:20) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
That one even looked like a bug what I first saw it, which I cant say
tdickenson at geminidataloggers.com
More information about the Python-list