# HG changeset patch # User Atul Varma # Date 1213166336 25200 # Node ID dd7a5307fbf782c7cdc902c29d17becdd4240872 # Parent ac0b1bf6a92b5923fe49a0c7cb54da039c18349d Fixed this comment from mzz: Nitpicking: ?Strings are just sequences of characters? is slightly misleading because Python does not have a separate type for characters. Iterating over a string gives you strings of length 1 (which you can convert to int or use directly). This is occasionally important (like when trying to flatten a structure recursively: recursing into the length 1 strings is bad?) diff -r ac0b1bf6a92b -r dd7a5307fbf7 PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Tue Jun 10 23:34:40 2008 -0700 +++ b/PythonForJsProgrammers.txt Tue Jun 10 23:38:56 2008 -0700 @@ -380,8 +380,8 @@ hello there -Strings are just sequences of characters, so they can be used -similarly: +Strings are just sequences of single-character strings, so they can be +used similarly: >>> for c in "boof": ... print c