[Python-Dev] CVS: python/dist/src/Objects listobject.c,2.69,2.70 and friends

Michael Hudson mwh21@cam.ac.uk
Thu, 1 Jun 2000 16:39:59 +0100 (BST)


On Thu, 1 Jun 2000, Fred L. Drake, Jr. wrote:

> 
> Skip Montanaro writes:
>  > I've seen this new error message cross my mailbox a few times.  On the face
>  > of it, it's incorrect, because you can append any sort of object to a list,
>  > right?  This message appears in the list_concat method.  Shouldn't it be
>  > something like
>  > 
>  >     can't concatenate \"%.200s\" object with list
> 
> Skip,
>   You're right!  How about:
> 
>        can only concatenate list (not \"%.200s\") to list
> 
>   If you don't object by the time this mail reaches you, I'll check it
> in.  ;)

Then you'd better do something about tupleobject.c as well; I'd also say

       can only concatenate list (not \"%.200s\") and list
       can only concatenate tuple (not \"%.200s\") and tuple

are slightly preferable, on reflection (note the s/to/and/).

Cheers,
Michael