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


Groups > comp.lang.python > #45696 > unrolled thread

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

Started byCarlos Nepomuceno <carlosnepomuceno@outlook.com>
First post2013-05-22 05:26 +0300
Last post2013-05-22 05:26 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Myth Busters: % "this old style of formatting will eventually be removed from the language" Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-22 05:26 +0300

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

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-05-22 05:26 +0300
SubjectMyth Busters: % "this old style of formatting will eventually be removed from the language"
Message-ID<mailman.1944.1369189574.3114.python-list@python.org>
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 		 	   		  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web