[Python-Dev] PEP 215 redux: toward a simplified consensus?
Guido van Rossum
guido@python.org
Mon, 25 Feb 2002 17:05:59 -0500
Mon, 25 Feb 2002 17:05:59 -0500
- Previous message: [Python-Dev] PEP 215 redux: toward a simplified consensus?
- Next message: [Python-Dev] PEP 215 redux: toward a simplified consensus?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > Does anybody ever even use something other than `s' for %() strings?
> >
> > >>> '%(float)f' % {'float': 3.9}
> > '3.900000'
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.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] PEP 215 redux: toward a simplified consensus?
- Next message: [Python-Dev] PEP 215 redux: toward a simplified consensus?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]