[Python-3000] More PEP 3101 changes incoming

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 8 01:53:42 CEST 2007


Nick Coghlan wrote:
> If __format__ receives both the alignment specifier and the format 
> specifier as arguments,

My suggestion would be for it to receive the alignment
spec pre-parsed, since apply_format has to at least
partially parse it itself, and there doesn't seem to
be anything gained by having *both* the format and
alignment specs arbitrary, as anything type-specific
can go in the format spec. So the alignment spec
might as well have a fixed syntax.

--
Greg


More information about the Python-3000 mailing list