[Tutor] table to dictionary and then analysis

Steven D'Aprano steve at pearwood.info
Thu May 17 11:35:01 CEST 2012

On Thu, May 17, 2012 at 08:27:07AM +0100, Russel Winder wrote:

> Should we be promoting use of the format method in strings rather than
> the % operator? % is deprecated now.

It most certainly is not.

There are no plans to deprecate the string % operator any time in the 
foreseeable future. It may, hypothetically, wither away from lack of use 
(although I doubt it -- so long as there are C programmers, there will 
be people who like % formatting).

If you think it is deprecated, please show me in the official Python 
documentation where it says so.

As far as I am concerned, the final word on deprecation belongs to the 
creator of Python, and BDFL, Guido van Rossum, who hopes that *at best* 
the format method will gradually replace % formatting over the next 
decade or so before the (as yet hypothetical) Python 4:


Rather than repeat myself, I will just point to what I wrote back in 



More information about the Tutor mailing list