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


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

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

Started byEthan Furman <ethan@stoneleaf.us>
First post2013-05-21 19:37 -0700
Last post2013-05-21 19:37 -0700
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Ethan Furman <ethan@stoneleaf.us> - 2013-05-21 19:37 -0700

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

FromEthan Furman <ethan@stoneleaf.us>
Date2013-05-21 19:37 -0700
SubjectRe: Myth Busters: % "this old style of formatting will eventually be removed from the language"
Message-ID<mailman.1948.1369193191.3114.python-list@python.org>
On 05/21/2013 07: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?

It was exuberant wishful thinking.  ;)

While .format() does have its uses, % is in wide-spread use even among the core-devs.  It's not going away any time soon.

--
~Ethan~

[toc] | [standalone]


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


csiph-web