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

Raymond Hettinger python at rcn.com
Thu Feb 21 00:57:27 CET 2008


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;
    }


More information about the Python-checkins mailing list