Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58229 > unrolled thread
| Started by | Michael Torrie <torriem@gmail.com> |
|---|---|
| First post | 2013-10-31 20:41 -0600 |
| Last post | 2013-10-31 20:41 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Python wart Michael Torrie <torriem@gmail.com> - 2013-10-31 20:41 -0600
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2013-10-31 20:41 -0600 |
| Subject | Re: Python wart |
| Message-ID | <mailman.1902.1383273741.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web