On Sun, Jan 24, 2010 at 12:08 PM, Alan Gauld <alan.gauld at btinternet.com> wrote: > > "Hugo Arts" <hugo.yoshi at gmail.com> wrote >>>>> >>>>> print "this is {0}".format("formatted") >> >> this is formatted > > Caveat: > this style only works in Python 3.0 upwards (or maybe in 2.6/2.7?) It's in 2.6 http://docs.python.org/library/stdtypes.html#str.format Kent