markup fixup for publication

This commit is contained in:
Mark Pilgrim
2009-03-21 13:10:24 -04:00
parent e871e69319
commit 8511a902c2
+2 -3
View File
@@ -136,9 +136,7 @@ def approximate_size(size, a_kilobyte_is_1024_bytes=True):
<h2 id=formatting-strings>Formatting strings</h2>
<p>[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".]
<p>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.
<p>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.
<pre class=screen>
<samp class=p>>>> </samp><kbd>username = "mark"</kbd>
@@ -155,6 +153,7 @@ def approximate_size(size, a_kilobyte_is_1024_bytes=True):
<pre class=screen>
<samp class=p>>>> </samp><kbd>import humansize</kbd>
<samp class=p>>>> </samp><kbd></kbd>
</pre>
<div class=s>
<p>Note that <code>(k, v)</code> is a tuple. I told you they were good for something.