[Python-Dev] Add alternate float formatting styles to new-style formatting: allowed under moratorium?
Nick Coghlan
ncoghlan at gmail.com
Wed Feb 24 14:42:05 CET 2010
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.
>
> Would this be allowed under the moratorium? I think it falls under the
> Case-by-Case Exemptions section, but let me know what you think.
+1 to add it. We want the new-style formatting to be able to replace as
many old style uses as possible (preferably all of them) and this is a
well-defined formatting operation from C99.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list