Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!amsnews11.chello.com!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'python.': 0.04; 'cpython': 0.05; 'deprecated': 0.09; 'obsolete': 0.09; 'readable': 0.09; 'exception': 0.12; 'received:209.85.214.174': 0.13; 'subject:vs.': 0.16; "wouldn't": 0.17; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; 'statement': 0.23; 'versions': 0.23; 'formatting': 0.23; 'string': 0.24; 'windows': 0.26; "i'm": 0.26; 'mainly': 0.28; 'described': 0.28; 'pm,': 0.29; 'kelly': 0.30; 'url:library': 0.31; 'received:209.85.214': 0.32; "can't": 0.32; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr :python-list': 0.34; 'probably': 0.34; 'here,': 0.35; 'operations': 0.35; 'url:python': 0.36; 'but': 0.37; 'received:192': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'easier': 0.38; 'url:docs': 0.39; 'url:org': 0.39; '(with': 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40; 'more': 0.61; 'love': 0.62; 'believe': 0.65; 'here': 0.65; 'taking': 0.66; 'become': 0.69; 'soon.': 0.71; '"will': 0.84; '11:58': 0.84; 'surprise': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=yoI9kByg7RnMF9eiYgbh0k5ziP4H/nXStYwFJvEctBk=; b=FM7PH6qSJLRRKsY66sk7UlEzi7ngQC6CHJF1HKcDkhkKdgP98HP832L75JFuz0/ZoK /DT1wo+7MrPcfVOu0J8mb+uCQP4V19KDSLz7tUjFB7GT4o2PDQSXhcpnQ4OB7xu6X7cs VZAn46Nel1WyvlyT2Q7pNWN9BwpO/Wkx/lUEw= Date: Tue, 03 Jan 2012 04:55:16 -0600 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: "comp.lang.python" 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> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325588131 news.xs4all.nl 6963 [2001:888:2000:d::a6]:48460 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18391 On 1/2/2012 11:58 PM, Ian Kelly wrote: > I can't believe I'm taking Rick's side here, but the docs do say: > > "Note: The formatting operations described here are obsolete and may > go away in future versions of Python. Use the new String Formatting in > new code." > > http://docs.python.org/py3k/library/stdtypes.html#old-string-formatting-operations And that is mainly what I based my statement on. As I said, it's not likely to be any time soon. I highly doubt it will even become deprecated in 3.3, but it wouldn't surprise me if it becomes deprecated in 3.4 and removed in 4.0. In any case, I should've said "will probably go away". To add my opinion on it, I find format() much more readable and easier to understand (with the exception of the {} {} {} {} syntax), and would love to see %-style formatting phased out. -- CPython 3.2.2 | Windows NT 6.1.7601.17640