Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'dynamically': 0.07; 'string': 0.09; 'formatting': 0.09; 'lawrence': 0.09; 'pep': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'meant': 0.20; 'header:User-Agent:1': 0.23; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'raise': 0.29; 'quite': 0.32; 'method': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'most': 0.60; 'new': 0.61; 'accounts': 0.64; 'acts': 0.74; 'yours': 0.88 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Thu, 31 Oct 2013 20:41:45 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python wart References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383273741 news.xs4all.nl 15885 [2001:888:2000:d::a6]:50741 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58229 On 10/31/2013 07:45 PM, Mark Lawrence wrote: > Quite often I type this > > print('Total of accounts %.2f', total) > > when I meant to type this > > print('Total of accounts %.2f' % total) > > Do I have to raise a PEP to get this stupid language changed so that it > dynamically recognises what I want it to do and acts accordingly? > > Yours most frustratedly. This is one reason I've started using the new string formatting method in all my new code.