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


Groups > comp.lang.python > #58231

Re: Python wart

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'dynamically': 0.07; 'string': 0.09; 'formatting': 0.09; 'git': 0.09; 'lawrence': 0.09; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'python': 0.11; 'windows': 0.15; 'programmer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'shortcut': 0.16; "where's": 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'meant': 0.20; 'thanks.': 0.20; 'programming': 0.22; 'header:User-Agent:1': 0.23; "i've": 0.25; 'compiled': 0.26; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'raise': 0.29; 'code': 0.31; 'quite': 0.32; 'but': 0.35; 'idle': 0.36; 'method': 0.36; "i'll": 0.36; 'being': 0.38; 'christian': 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; 'world.': 0.61; 'accounts': 0.64; 'acts': 0.74; 'received:2': 0.84; 'yours': 0.88; 'wanting': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Python wart
Date Fri, 01 Nov 2013 02:56:22 +0000
References <l4v12j$98o$1@ger.gmane.org> <527314E9.2060507@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-2-98-197-217.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
In-Reply-To <527314E9.2060507@gmail.com>
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.1904.1383274601.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383274601 news.xs4all.nl 15947 [2001:888:2000:d::a6]:59649
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58231

Show key headers only | View raw


On 01/11/2013 02:41, Michael Torrie wrote:
> 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.
>

I'll admit to being a lazy, bone idle git and not wanting to change my 
code as a former C programmer, but that strikes me as a cunning plan, 
thanks.  Now where's my Windows desktop shortcut to the Python compiled 
help file? :)

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

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


Thread

Re: Python wart Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-01 02:56 +0000

csiph-web