Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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; 'bug.': 0.07; 'python': 0.08; '3.0,': 0.09; 'deprecated': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'formatting.': 0.16; 'outcome:': 0.16; 'pydev': 0.16; 'received:70.85.130': 0.16; 'received:70.85.130.22': 0.16; 'subject:vs.': 0.16; 'way"': 0.16; 'wrote:': 0.18; 'maybe': 0.21; 'discussion': 0.22; 'wrote': 0.22; 'header:In-Reply-To:1': 0.22; 'formatting': 0.23; 'pep': 0.23; 'string': 0.24; '(in': 0.26; "i'm": 0.26; 'fewer': 0.30; 'kelly': 0.30; 'shift': 0.30; '2009.': 0.31; 'header:User-Agent:1': 0.33; 'there': 0.33; 'to:addr:python- list': 0.34; 'eric': 0.34; 'too': 0.34; '(not': 0.35; 'notes': 0.35; 'supposed': 0.35; 'url:python': 0.36; '(from': 0.37; 'thread': 0.37; 'url:pipermail': 0.37; 'two': 0.37; 'reference': 0.37; 'received:76': 0.37; 'think': 0.37; 'plans': 0.37; 'url:org': 0.39; "it's": 0.40; 'to:addr:python.org': 0.40; 'according': 0.61; 'received:websitewelcome.com': 0.64; 'received:184': 0.67; '"there': 0.84; '3101': 0.84; 'many.': 0.84; 'zen': 0.84; '"one': 0.91 Date: Tue, 03 Jan 2012 05:26:57 -0800 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python-list@python.org Subject: Re: .format vs. % References: <5642862.375.1325355574622.JavaMail.geo-discussion-forums@vbbhx10> <4EFF559E.1050408@gmail.com> <4f027b79$0$29880$c3e8da3$5496439d@news.astraweb.com> <4f029d1e$0$29880$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-76-105-214-227.hsd1.or.comcast.net ([192.168.74.5]) [76.105.214.227]:2018 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 2 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325598771 news.xs4all.nl 6912 [2001:888:2000:d::a6]:48586 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18404 Ian Kelly wrote: > I'm not sure it's true that "there are no plans to do so in the > foreseeable future." According to the release notes from Python 3.0, > % formatting was supposed to be deprecated in Python 3.1. Eric Smith wrote (from a thread on pydev in 02-2011): > The last thread on this I have a reference to was in September 2009. I > think was basically the outcome: > http://mail.python.org/pipermail/python-dev/2009-September/092399.html > > So there will be no deprecation, just a gradual shift to PEP 3101 > formatting. Ian Kelly wrote: > Maybe there was a discussion on py-dev > where it was decided that % formatting would not be deprecated after > all (in which case the misleading "obsolete" note really ought to be > removed from the documentation). Agreed that this is a documentation bug. Ian Kelly wrote: > The reason for deprecating it is because Python currently has no fewer > than three mechanisms for string formatting (not even including > ordinary string concatenation), which according to the Zen of Python > is two too many. "one obvious way" != "only one way" ~Ethan~