Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'tutorial': 0.03; 'formatting': 0.09; 'subject:language': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'language,': 0.12; 'issue?': 0.16; 'operator.': 0.16; 'outdated': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'str.format()': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'new,': 0.24; 'removed.': 0.24; 'subject:will': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'generally': 0.29; 'code': 0.31; 'quite': 0.32; 'url:python': 0.33; 'style': 0.33; 'subject:the': 0.34; 'subject:from': 0.34; 'something': 0.35; 'date.': 0.36; 'url:org': 0.36; 'should': 0.36; 'being': 0.38; 'pm,': 0.38; 'eventually': 0.60; 'subject:"': 0.60; 'first': 0.61; 'subject:this': 0.83; 'carlos': 0.91 Date: Tue, 21 May 2013 23:26:58 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Carlos Nepomuceno Subject: Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369193229 news.xs4all.nl 15917 [2001:888:2000:d::a6]:44312 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45704 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.