Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58227
| 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@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'argument': 0.05; 'subject:Python': 0.06; 'dynamically': 0.07; 'string': 0.09; 'lawrence': 0.09; 'literal': 0.09; 'pep': 0.09; 'warn': 0.09; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'recognise': 0.16; 'followed': 0.16; 'language': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; 'raise': 0.29; 'quite': 0.32; 'could': 0.34; 'something': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'most': 0.60; 'first': 0.61; 'accounts': 0.64; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'acts': 0.74; 'reply- to:addr:python.org': 0.84; 'yours': 0.88 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.1 cv=bKAvfpOZ c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=2LCq-pQfA8cA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=f_TX-JM8qQMA:10 a=CeZk5pALjwPv-kJmH0wA:9 a=wPNLvfGTeEIA:10 |
| X-AUTH | mrabarnett:2500 |
| Date | Fri, 01 Nov 2013 02:01:30 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
| 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; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| 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.1901.1383271294.18130.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1383271294 news.xs4all.nl 15989 [2001:888:2000:d::a6]:39563 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:58227 |
Show key headers only | View raw
On 01/11/2013 01:45, 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.
>
Could something like pylint recognise a format string literal as the
first argument of 'print' and warn if it's followed by a comma?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python wart MRAB <python@mrabarnett.plus.com> - 2013-11-01 02:01 +0000
csiph-web