[Python-3000] More PEP 3101 changes incoming

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Aug 4 13:55:23 CEST 2007


Talin wrote:
> But the formatters for int and float have to happen *after* type 
> coercion.

I don't see why. Couldn't the __format__ method
for an int recognise float formats as well and coerce
itself as necessary?

> (I should also mention that "a:b,c" looks prettier to my eye than 
> "a,b:c".

It seems more logical to me, too, for the colon
to separate the value from all the stuff telling
how to format it.

--
Greg


More information about the Python-3000 mailing list