changeset 52:dd7a5307fbf7

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?)
author Atul Varma <varmaa@toolness.com>
date Tue, 10 Jun 2008 23:38:56 -0700
parents ac0b1bf6a92b
children 89325a6a204d
files PythonForJsProgrammers.txt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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