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


Groups > comp.lang.python > #58229

Re: Python wart

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 <torriem+gmail@torriefamily.org>
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 <torriem@gmail.com>
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 <l4v12j$98o$1@ger.gmane.org>
In-Reply-To <l4v12j$98o$1@ger.gmane.org>
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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1902.1383273741.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

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


Thread

Re: Python wart Michael Torrie <torriem@gmail.com> - 2013-10-31 20:41 -0600

csiph-web