[Python-Dev] transitioning from % to {} formatting
Michael Foord
fuzzyman at voidspace.org.uk
Thu Oct 8 17:56:35 CEST 2009
Christian Tanzer wrote:
> [snip...]
>>> IMHO, either the translation is done once and gives identical output or
>>> it isn't worth doing at all.
>>>
>> I disagree. I doubt even 0.001% of all format strings involve octal
>> formatting. Is it really worth not providing a transition path if it
>> can't cover this case?
>>
>
> If %-formatting is first deprecated then removed from Python and there
> is no automatic transition path that effectively means that existing
> code using %-formatting is forced to stay at whatever Python version
> was the last one supporting %-formatting.
>
> I surely hope nobody is seriously considering such a scenario. Perl 6
> seems harmless in comparison.
>
That is vastly overstating it. Making 'with' and 'as' keywords and
removing string exceptions (which have already happened) will affect far
more programs than a minor incompatibility in transitioning string
formatting.
Michael
> --
> Christian Tanzer http://www.c-tanzer.at/
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>
--
http://www.ironpythoninaction.com/
More information about the Python-Dev
mailing list