[Python-checkins] r60910 - python/trunk/Objects/stringlib/formatter.h
Eric Smith
eric at trueblade.com
Thu Feb 21 01:47:44 CET 2008
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.
Eric.
Raymond Hettinger wrote:
> I'm curious. Why were all the post-increments changed to pre-increments?
>
> Raymond
>
>
> --------------------------------
>
> Modified:
> python/trunk/Objects/stringlib/formatter.h
> Log:
> Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it.
>
> Modified: python/trunk/Objects/stringlib/formatter.h
> ==============================================================================
> --- python/trunk/Objects/stringlib/formatter.h (original)
> +++ python/trunk/Objects/stringlib/formatter.h Thu Feb 21 00:39:28 2008
> @@ -130,16 +130,16 @@
> }
> else if (end-ptr >= 1 && is_alignment_token(ptr[0])) {
> format->align = ptr[0];
> - ptr++;
> + ++ptr;
> }
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-checkins
mailing list