This will work as expected:
>>> a = [[1,2,3], 'howdy!' ] # list rather than tuple
>>> print "%s" % a
As will:
>>> print "(%s,%s)" % ( [1,2,3], "howdy!" )
And (more illustrative of the problem) so will:
>>> print "%s" % (( [1,2,3], "howdy!" ),) # tuple arg in a singleton-tuple
So, there is a little ambiguity here, and I'm not quite sure as to
whether to classify this as a bug or a (mis)-feature.
( And, I'm too lazy to RTFM at the moment! :-)
- Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
- UVA Department of Molecular Physiology and Biological Physics