[Tutor] table to dictionary and then analysis

Mark Lawrence breamoreboy at yahoo.co.uk
Thu May 17 16:00:29 CEST 2012


On 17/05/2012 10:35, Steven D'Aprano wrote:
> 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:
>
> http://mail.python.org/pipermail/python-dev/2009-September/092399.html
>
> Rather than repeat myself, I will just point to what I wrote back in
> January:
>
> http://mail.python.org/pipermail/python-list/2012-January/1285894.html
>
>
>

You beat me to it :)

-- 
Cheers.

Mark Lawrence.



More information about the Tutor mailing list