From 8511a902c22ed79841923336f28cd1dacd00f743 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 21 Mar 2009 13:10:24 -0400 Subject: [PATCH] markup fixup for publication --- strings.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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):

Formatting strings

-

[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.