Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.03; 'url:pipermail': 0.05; 'subject:Python': 0.06; 'explicit': 0.07; 'formatting': 0.09; 'lawrence': 0.09; 'modulo': 0.09; 'distinct': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'sends': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'depth': 0.31; 'go.': 0.31; 'styles': 0.31; 'anyone': 0.31; 'url:python': 0.33; 'fri,': 0.33; 'style': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'url:org': 0.36; 'behind': 0.37; 'nov': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'here': 0.66; 'lose': 0.68; 'url:python-dev': 0.84; 'favour': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oI2nuuJxwOOCNrOe8R3rneNpQarfg6f1egha2ckMma8=; b=w9J49HINTKLccIlRKFG+TmHwLx2GJWale+bdWlN0o/tYoo8ZetVt1oh2D67guNA1G1 PyJ3pM5fFzXCPrHBP88pVUFAdPhyc+YO9Hr9aeg7sEj0NGhnrjTH/0rGqRk/ofXAAhhU SmIpOrMdgZMtMhP817z8o3VfyCQ5Dl9xdvo9gECxzztnCkpfjx3YUgFobWfog1EIDjjs DfvR8stidUX0nnO5GxAr5EloWNU9S2LFORwkXnigU7ZxCXuV1vZnEE7YuBb6e40N53yB nsvymrsYv+NU4vlg6vCD6F5p2yY+OeqvhKjCOif2n1zeK/sDbCOz4x4Q5WxvoAGDT2bS T5+g== MIME-Version: 1.0 X-Received: by 10.68.96.130 with SMTP id ds2mr2294906pbb.99.1383298973302; Fri, 01 Nov 2013 02:42:53 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Nov 2013 20:42:53 +1100 Subject: Re: Python wart From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383298976 news.xs4all.nl 15979 [2001:888:2000:d::a6]:56128 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58253 On Fri, Nov 1, 2013 at 8:32 PM, Mark Lawrence wrote: > I wondered if the idea of deprecating printf style formatting might also > come up again. It was discussed in some depth here > https://mail.python.org/pipermail/python-dev/2012-February/116789.html I don't see any reason for it to go. Anyone who wants to use .format() is welcome to; anyone who likes %s is welcome to use that. They have sufficiently distinct styles that they don't really come into conflict. Now, if someone wants to deprecate the "str modulo anything" operator in favour of an explicit sprintf() function (optionally with printf() that sends straight through to print()), that I might get behind - but I don't see any reason to lose the printf-style formatting codes. ChrisA