diff --git a/strings.html b/strings.html index af3e7b0..eeab388 100644 --- a/strings.html +++ b/strings.html @@ -136,9 +136,7 @@ def approximate_size(size, a_kilobyte_is_1024_bytes=True):
[FIXME this is all completely different in Python 3. Cover the new way, then maybe show some examples from the old way? Or maybe not. Hey, maybe just point to the original "Dive Into Python".] - -
Python supports formatting values into strings. Although this can include very complicated expressions, the most basic usage is to insert a value into a string with single placeholder. +
Python 3 supports formatting values into strings. Although this can include very complicated expressions, the most basic usage is to insert a value into a string with single placeholder.
>>> username = "mark" @@ -155,6 +153,7 @@ def approximate_size(size, a_kilobyte_is_1024_bytes=True):>>> import humansize >>> +Note that
(k, v)is a tuple. I told you they were good for something.