[Python-3000] PEP 3101 update

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 22 09:42:08 CEST 2006


Talin wrote:

>     s = str.convert( f, "2.2g" )

If format is a string method, then you will already be
able to do

   s = str.format("2.2g", f)

if you want.

--
Greg


More information about the Python-3000 mailing list