Wikipedia is a little more helpful but not Python oriented: http://en.wikipedia.org/wiki/Printf#printf_format_placeholders
Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ ----- Original Message ---- > From: Richard D. Moores <[email protected]> > To: ALAN GAULD <[email protected]> > Cc: [email protected] > Sent: Monday, 19 July, 2010 18:07:47 > Subject: Re: [Tutor] A file containing a string of 1 billion random digits. > > On Mon, Jul 19, 2010 at 09:58, ALAN GAULD < > ymailto="mailto:[email protected]" > href="mailto:[email protected]">[email protected]> > wrote: > Heres what I did: > Search Google for "Python format > strings" and from the first link click > on String Formatting operations > in the contents pane: > > > href="http://docs.python.org/library/stdtypes.html#string-formatting-operations" > > target=_blank > >http://docs.python.org/library/stdtypes.html#string-formatting-operations > > > Read item number 4. "4. Minimum field width (optional). If specified as > an '*' (asterisk), the actual width is read from the next element of the > tuple in values, and the object to convert comes after the minimum field > width and optional precision." Now that just screams for about a dozen > well-designed illustrative examples, don't you think? Thanks, > Alan. _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
