On Sun, Jan 24, 2010 at 12:08 PM, Alan Gauld <[email protected]> wrote:
>
> "Hugo Arts" <[email protected]> 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  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to