[Python-Dev] transitioning from % to {} formatting (original) (raw)

Christian Tanzer tanzer at swing.co.at
Thu Oct 8 18:08:41 CEST 2009


Michael Foord wrote at Thu, 08 Oct 2009 16:56:35 +0100:

> 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.

with and as are trivial to fix and certainly not pervasive in existing code. String exceptions have been deprecated for years.

-- Christian Tanzer http://www.c-tanzer.at/



More information about the Python-Dev mailing list