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.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor