[Python-3000] More PEP 3101 changes incoming
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Aug 7 02:53:27 CEST 2007
Ron Adam wrote:
> {0:d,10+20} # Field width are just string operations done after
> # formatting is done.
>
> {0:d10+20} # Numeric widths, differ from field widths.
> # They are specific to the type so can handle special
> # cases.
Still not good - if you confuse two very similar and easily
confusable things, your numbers get chopped off.
I'm with Guido on this one: only strings should have
a max width, and it should be part of the string format
spec, so you can't accidentally apply it to numbers.
--
Greg
More information about the Python-3000
mailing list