[Python-Dev] Add alternate float formatting styles to new-style formatting: allowed under moratorium?

Terry Reedy tjreedy at udel.edu
Wed Feb 24 22:20:20 CET 2010

On 2/24/2010 8:13 AM, Eric Smith wrote:
> http://bugs.python.org/issue7094 proposes adding "alternate" formatting
> [1] to floating point new-style formatting (float.__format__ and
> probably Decimal.__format__). I'd like to add this to make automated
> translation from %-formatting strings to str.format strings easier.

An excellent goal, for the reasons Nick stated.
> Would this be allowed under the moratorium?

I see the formating mini-language as somewhat separate from Python 
syntax itself (as is the re minilanguage). In any case, it is new and 
somewhat experimental, rather than being the result of 20 years of testing.

Terry Jan Reedy

More information about the Python-Dev mailing list