"a better input"
John La Rooy
larooy at xtar.co.nz
Fri May 10 21:52:48 EDT 2002
Speaking of which, does this make *sense* ?
>>> l=[]
>>> l+=(1,2)
>>> l=l+(3,4)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: can only concatenate list (not "tuple") to list
John
On Fri, 10 May 2002 09:00:26 -0600
"Andrew Dalke" <dalke at dalkescientific.com> wrote:
> Me:
> >> I suppose you're also going to tell me that
> >> [].append(1,2) no longer works?
>
> Louis M. Pecora:
> >This is a joke, right? :-) ? :-| ? :-( ?
>
> It's a joke in that I know it changed and that I know that
> feature was deprecated something like 8-10 years ago and that
> it was not documented as valid. Were I still using 1.5.2 it
> would work, but the likelihood of someone using that feature
> in pre-2.0 and realizing it might have been changed in newer
> releases without knowing it explicitly from reading the change
> log is, I think, quite small.
>
> As such, this limp joke was meant for people who know the
> history of changes in Python. And only people using pre-2.0
> would be confused, since you can always try that line out
> to see what it says.
>
> It's not a joke in that multi-parameter append truely is no
> longer allowed.
>
> Andrew
> dalke at dalkescientific.com
>
>
>
More information about the Python-list
mailing list