On Sun, Jan 24, 2010 at 12:08 PM, Alan Gauld <alan.ga...@btinternet.com> wrote: > > "Hugo Arts" <hugo.yo...@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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor