Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45704
| Date | 2013-05-21 23:26 -0400 |
|---|---|
| From | Ned Batchelder <ned@nedbatchelder.com> |
| Subject | Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" |
| References | <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1949.1369193229.3114.python-list@python.org> (permalink) |
On 5/21/2013 10:26 PM, Carlos Nepomuceno wrote: > I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: > > "Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting will eventually be removed from the language, str.format() should generally be used." > > 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. --Ned.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Ned Batchelder <ned@nedbatchelder.com> - 2013-05-21 23:26 -0400
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-22 14:24 +0000
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-22 15:40 -0400
csiph-web