string.join question
Alex Martelli
aleax at aleax.it
Thu Oct 3 02:39:02 EDT 2002
mongo57a at comcast.net wrote:
> Trying to join a string as follows: string.join(['\,'aaa','\],'')
> (the last characters are 2 single quotes).
> I want a character string which looks like 'aaa' (with quotes). Anybody
Have you tried repr('aaa') ... ? string.join (an old usage) or the
join method of string objects (a newer one) seem to have little to
do with the effect you say you want to achieve.
Alex
More information about the Python-list
mailing list