[Python-Dev] Numeric alignment issue with PEP 3101 (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 8 00:05:33 CEST 2009


Eric Smith wrote:

Mark Dickinson and I agree that for numeric types, right alignment makes much more sense as a default. And that's what %-formatting and str.format() both do.

Is the new formatting supposed to behave the same way as %-formatting for the same format codes? Because the default for %-formatting is actually right alignment for all types, including strings.

-- Greg



More information about the Python-Dev mailing list