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


Groups > comp.lang.python > #45719

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

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.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; 'mentions': 0.09; 'pep': 0.09; 'spreading': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'disappear,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'issue?': 0.16; 'otoh,': 0.16; 'outdated': 0.16; 'somewhere.': 0.16; 'subject: \n ': 0.16; 'sender:addr:gmail.com': 0.17; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'removed.': 0.24; 'skip': 0.24; 'subject:will': 0.24; 'mention': 0.26; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'older': 0.33; 'updated': 0.34; 'subject:the': 0.34; "i'd": 0.34; 'subject:from': 0.34; 'received:google.com': 0.35; 'date.': 0.36; 'url:org': 0.36; 'should': 0.36; 'operating': 0.37; 'being': 0.38; 'system,': 0.38; 'does': 0.39; 'days': 0.60; 'remove': 0.60; 'eventually': 0.60; 'subject:"': 0.60; 'day': 0.76; 'subject:this': 0.83; '3101': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=o2+6jnL7J+sKYdkBmJmA5CfJTz5FCcrpBz4a1R4YJTc=; b=yIyUb947Rm8gAqtTOAo7IaxCEIHGWvBwAGRH3QVilL5eFhKTY6S0VWRHdxAxBtXRyA 2tp2DrNcmq52PKz75XMsRV4PHlYFjtodv7yAgtgV1KlEQanstJVGYD0SlDWL/xQ3GjuY W0/zqiD1775GTRf8QTr7k+y6XdPbVOwROmpA+VpYwFzLfUBHd7BgKciH3rsQAaK5BCIR hNuZibn+T0QdOBxdbTRoCx9/SPOfHsQwXbP2O/CTBTy5+CVzqY61W4ktevhqAoQ+GgeO lNMCmv00KLA5gC5A4NgvjM7Grj8epB5ZthOHljobgoGbBMvxD5E0UK56TmTbCp7GMbq+ w7Tw==
MIME-Version 1.0
X-Received by 10.180.212.3 with SMTP id ng3mr13532600wic.22.1369218942585; Wed, 22 May 2013 03:35:42 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <519C3B02.1020706@nedbatchelder.com>
References <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> <519C3B02.1020706@nedbatchelder.com>
Date Wed, 22 May 2013 05:35:42 -0500
X-Google-Sender-Auth 1OZ8gs5cPsFx0cJcZABq4lrH8y0
Subject Re: Myth Busters: % "this old style of formatting will eventually be removed from the language"
From Skip Montanaro <skip@pobox.com>
To Ned Batchelder <ned@nedbatchelder.com>
Content-Type text/plain; charset=UTF-8
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.1957.1369218950.3114.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369218950 news.xs4all.nl 15956 [2001:888:2000:d::a6]:60258
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45719

Show key headers only | View raw


>> 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.

OTOH, PEP 3101 also mentions deprecation, at the very end: "... both
systems can co-exist until it comes time to deprecate the older
system."

I have been operating under the assumption since the days of that PEP
that %-style formatting would eventually disappear, dreading the day
when I'd have to learn the str.format language.  I apologize for
(inadvertently) spreading FUD.

It does seem like the documentation should be updated in a few places.
 If the decision has been made to not remove the older system, it
might be worthwhile to mention that somewhere.  Clearly the tutorial
and PEP 3101 should be updated.

Skip

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Skip Montanaro <skip@pobox.com> - 2013-05-22 05:35 -0500
  Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" nn <pruebauno@latinmail.com> - 2013-05-22 12:49 -0700

csiph-web