On Dec 2, 8:01 am, Mark Summerfield <l...@qtrac.plus.com> wrote: > On 1 Dec, 17:50, Mark Dickinson <dicki...@gmail.com> wrote: > > My only quibble is with the statement on the first page that > > the 'String % operator is deprecated'. I'm not sure that's > > true, for all values of 'deprecated'. There don't appear > > to be any definite plans for getting rid of it just yet. > > I didn't make this up:-)
No, I didn't imagine for a second that you had! > According to http://docs.python.org/dev/3.0/whatsnew/3.0.html > "The plan is to eventually make this the only API for string > formatting, and to start deprecating the % operator in Python 3.1." I think that's a doc bug. "The plan is to ..." should read: "The plan was originally to ...". (Well, at least in the 3.1 version of the "what's new in 3.0" documentation; the 3.0 version that you linked to isn't even autogenerated any more, AFAIK, so fixes to the ReST source for that file never make it to the web site.) I'm a little confused myself about what's actually happening with % formatting, but here's a fairly recent python-dev posting from the BDFL: http://mail.python.org/pipermail/python-dev/2009-September/092399.html Mark -- http://mail.python.org/mailman/listinfo/python-list