[Tutor] python string __add__

Tom Jenkins tjenkins@devis.com
Fri Jun 6 10:49:01 2003


On Fri, 2003-06-06 at 09:52, Guillaume wrote:
> I've got some times to run the prog
> and strangely when I type
> string.join(mylist,")
> I've got a syntax error with the little ^ under the
> second parenthesis.
> I use Python 2.2, could u explain me why?
> Thanx

probably because you typed one " instead of two 's

that is you could have done 
string.join(mylist, "") # here it is two double quotes
or 
string.join(mylist,'') # where here it is two single quotes


tom