[Python-Dev] PEP 215 redux: toward a simplified consensus? (original) (raw)

Tim Peters tim.one@comcast.net
Mon, 25 Feb 2002 22:29:05 -0500


[Guido]

I never use this in combination with named variables, but I often write timing programs that format times using "%6.3f" to get millisecond precision.

Note that you also use %(name)s with width, precision and justification modifiers. For example, this line is yours:

 s = "%(name)-20.20s %(sts)-10s %(uptime)6s %(idletime)6s" % locals()