Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58227
| Date | 2013-11-01 02:01 +0000 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: Python wart |
| References | <l4v12j$98o$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1901.1383271294.18130.python-list@python.org> (permalink) |
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