CHANGED LICENSE TO CC-BY-SA-3.0 at publisher's request, also some line-height css fiddling

This commit is contained in:
Mark Pilgrim
2009-02-12 02:16:49 -05:00
parent c3f10a5794
commit 3c39352a32
9 changed files with 87 additions and 57 deletions
+3 -4
View File
@@ -37,6 +37,7 @@ body{counter-reset:h1 1}
</ol>
<li><a href="#indentingcode">Indenting code</a>
<li><a href="#runningscripts">Running scripts</a>
<li><a href="#furtherreading">Further reading</a>
</ol>
<h2 id="divingin">Diving in</h2>
<p class="fancy">You know how other books go on and on about programming fundamentals and finally work up to building something useful? Let's skip all that. Here is a complete, working Python program. It probably makes absolutely no sense to you. Don't worry about that, because you're going to dissect it line by line. But read through it first and see what, if anything, you can make of it.
@@ -228,16 +229,14 @@ if __name__ == "__main__":
<pre class="screen"><samp class="prompt">c:\home\diveintopython3> </samp><kbd>c:\python30\python.exe humansize.py</kbd>
<samp>1.0 TB
931.3 GiB</samp></pre>
<div class="fr">
<h4>Further reading</h4>
<h3 id="furtherreading">Further reading</h3>
<ul>
<li><a href="http://www.python.org/dev/peps/pep-0257/">PEP 257: Docstring Conventions</a> explains what distinguishes a good <code>docstring</code> from a great <code>docstring</code>.
<li><a href="http://docs.python.org/3.0/tutorial/controlflow.html#documentation-strings">Python Tutorial: Documentation Strings</a> also touches on the subject.
<li><a href="http://www.python.org/dev/peps/pep-0008/">PEP 8: Style Guide for Python Code</a> discusses good indentation style.
<li><a href="http://docs.python.org/3.0/reference/"><cite>Python Reference Manual</cite></a> explains what it means to say that <a href="http://docs.python.org/3.0/reference/datamodel.html#objects-values-and-types">everything in Python is an object</a>, because some people are pedantic and like to discuss that sort of thing at great length.
</ul>
</div>
<p class="c">&copy; 2001-4, 2009 <span>&#x2133;</span>ark Pilgrim, <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">CC-BY-3.0</a>
<p class="c">&copy; 2001-4, 2009 <span>&#x2133;</span>ark Pilgrim, <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA-3.0</a>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="dip3.js"></script>
</body>