[Python-checkins] r60910 - python/trunk/Objects/stringlib/formatter.h

Eric Smith eric+python-dev at trueblade.com
Thu Feb 21 02:05:47 CET 2008


Fred Drake wrote:
> On Feb 20, 2008, at 7:47 PM, Eric Smith wrote:
>> It was a coding style I saw used more often than post-increments.  No
>> particular reason, just consistency.  I should have mentioned it in the
>> comments.
> 
> I like the pre-increment better because I find it more noticeable when 
> reading code; improved readability is good enough for me.

It's also a style I tried to get in to back when I did C++.  It was 
often more efficient there with user-defined types, but that argument 
doesn't hold here.  Still, it's the one style I've tried to stick to. 
And since this code is brand new, I figured it didn't really matter much 
if I went through and made a gratuitous change.


More information about the Python-checkins mailing list