Add alternate float formatting styles to new-style formatting: allowed under moratorium?

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. Eric. [1] Alternate formatting for floats modifies how trailing zeros and decimal points are treated. See http://docs.python.org/dev/library/stdtypes.html#string-formatting-operation...

Eric Smith wrote:
+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@gmail.com | Brisbane, Australia ---------------------------------------------------------------

On 2/24/2010 8:13 AM, Eric Smith wrote:
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

Eric Smith wrote:
+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@gmail.com | Brisbane, Australia ---------------------------------------------------------------

On 2/24/2010 8:13 AM, Eric Smith wrote:
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
participants (3)
-
Eric Smith
-
Nick Coghlan
-
Terry Reedy