Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r73266:dffa8ea95d54
Date: 2014-09-01 12:06 +0200
http://bitbucket.org/pypy/pypy/changeset/dffa8ea95d54/

Log:    clarify comment

diff --git a/pypy/module/_pypyjson/interp_encoder.py 
b/pypy/module/_pypyjson/interp_encoder.py
--- a/pypy/module/_pypyjson/interp_encoder.py
+++ b/pypy/module/_pypyjson/interp_encoder.py
@@ -41,9 +41,9 @@
         # 'w_string' directly.  But this requires an extra pass over all
         # characters, and the expected use case of this function, from
         # json.encoder, will anyway re-encode a unicode result back to
-        # a string (with the ascii encoding).  So we may as well directly
-        # turn it into a string from here, and avoid the extra pass over
-        # all characters here.
+        # a string (with the ascii encoding).  This requires two passes
+        # over the characters.  So we may as well directly turn it into a
+        # string here --- only one pass.
         u = space.unicode_w(w_string)
         sb = StringBuilder(len(u))
         first = 0
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to