expand tuple in string

Erik Max Francis max at alcyone.com
Wed Oct 15 19:31:53 EDT 2003


Steve Lamb wrote:

>     Or:
> 
>     "%s%s%s" % myTuple

That will not result in what he asked for:

>>> myTuple = 'one', 'two', 'three'
>>> '%s%s%s' % myTuple
'onetwothree'

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ There is nothing so subject to the inconstancy of fortune as war.
\__/  Miguel de Cervantes




More information about the Python-list mailing list