Moving from Python 2 to Python 3: A 4 page "cheat sheet"

Mark Dickinson dickinsm at gmail.com
Wed Dec 2 03:53:34 EST 2009


On Dec 2, 8:01 am, Mark Summerfield <l... at qtrac.plus.com> wrote:
> On 1 Dec, 17:50, Mark Dickinson <dicki... at 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



More information about the Python-list mailing list