Python wart

Michael Torrie torriem at gmail.com
Fri Nov 1 03:41:45 CET 2013


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.




More information about the Python-list mailing list