Re: [Tutor] output formatting question

2015-08-09 Thread Steven D'Aprano
On Wed, Aug 05, 2015 at 09:08:16PM -0700, tom arnall wrote: > i have read -- with what i think is a reasonable amount of attention > -- all of the doc' i can find about string formatting in python. for > the life of me, i cannot see how any of the other methods do more than > you can do with, to u

Re: [Tutor] output formatting question

2015-08-06 Thread Alan Gauld
On 06/08/15 05:08, tom arnall wrote: i have read -- with what i think is a reasonable amount of attention -- all of the doc' i can find about string formatting in python. for the life of me, i cannot see how any of the other methods do more than you can do with, ... percent style formatting...

[Tutor] output formatting question

2015-08-06 Thread tom arnall
i have read -- with what i think is a reasonable amount of attention -- all of the doc' i can find about string formatting in python. for the life of me, i cannot see how any of the other methods do more than you can do with, to use a concrete example: print "Here %s a number: %3d" % ("is",