[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r40229 - trunk/build

From: Branko Cibej <brane_at_xbc.nu>
Date: Tue, 27 Oct 2009 09:19:44 +0100

Blair Zajac wrote:
> This is descending to the level of I don't care, but out of curiosity,
> does anybody take the time to use non-%s for string interpolation?
> The code I write and most of the code I see doesn't bother to use
> non-%s unless special formatting is needed, say %10.5f.

I may be a conservative, crotchety old C programmer, but I tend to be
quite pedantic about formatting. Especially in a weakly-typed language
like Python, where the formatter at least yells at you if you happen to,
e.g., send a timedelta to a %d instead of an int. Using a %s always
"works" but also hides bugs.

-- Brane

Received on 2009-10-27 09:20:18 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.