Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45704
| 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 | <ned@nedbatchelder.com> |
| 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 <ned@nedbatchelder.com> |
| 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 <carlosnepomuceno@outlook.com> |
| Subject | Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" |
| References | <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> |
| In-Reply-To | <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1949.1369193229.3114.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
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