Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45719

Re: Myth Busters: % "this old style of formatting will eventually be removed from the language"

References <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> <519C3B02.1020706@nedbatchelder.com>
Date 2013-05-22 05:35 -0500
Subject Re: Myth Busters: % "this old style of formatting will eventually be removed from the language"
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.1957.1369218950.3114.python-list@python.org> (permalink)

Show all headers | View raw


>> Is this tutorial outdated or this still an issue?
>>
>> [1]
>> http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting
>
>
> That tutorial is out of date.  %-formatting isn't being removed.

OTOH, PEP 3101 also mentions deprecation, at the very end: "... both
systems can co-exist until it comes time to deprecate the older
system."

I have been operating under the assumption since the days of that PEP
that %-style formatting would eventually disappear, dreading the day
when I'd have to learn the str.format language.  I apologize for
(inadvertently) spreading FUD.

It does seem like the documentation should be updated in a few places.
 If the decision has been made to not remove the older system, it
might be worthwhile to mention that somewhere.  Clearly the tutorial
and PEP 3101 should be updated.

Skip

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Skip Montanaro <skip@pobox.com> - 2013-05-22 05:35 -0500
  Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" nn <pruebauno@latinmail.com> - 2013-05-22 12:49 -0700

csiph-web