Skip to content

Commit

Permalink
some prev/next navigation links between chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pilgrim committed Apr 16, 2009
1 parent a947c89 commit 78f11dd
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions advanced-iterators.html
Expand Up @@ -415,6 +415,8 @@ <h2 id=furtherreading>Further Reading</h2>

<p>Many, many thanks to Raymond Hettinger for agreeing to relicense his code so I could port it to Python 3 and use it as the basis for this chapter.

<p class=nav><a rel=prev href=iterators-and-generators.html title="back to &#8220;Iterators &amp; Generators&#8221;"><span>&#x261C;</a> <a rel=next class=todo><span>&#x261E;</span></a>

<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
3 changes: 3 additions & 0 deletions case-study-porting-chardet-to-python-3.html
Expand Up @@ -1177,6 +1177,9 @@ <h2 id=summary>Summary</h2>
<li><em>You</em> need to understand your program. Thoroughly. Preferably because you wrote it, but at the very least, you need to be comfortable with all its quirks and musty corners. The bugs are everywhere.
<li>Test cases are essential. Don't port anything without them. Don't even try. The <em>only</em> reason I have any confidence at all that <code>chardet</code> works in Python 3 is because I had a test suite that exercised every line of code in the entire library. I <em>never</em> would have found half of these problems with manual spot-checking.
</ol>

<p class=nav><a rel=prev class=todo><span>&#x261C;</a> <a rel=next href=porting-code-to-python-3-with-2to3.html title="onward to &#8220;Porting Code to Python 3 with 2to3&#8221;"><span>&#x261E;</span></a>

<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
9 changes: 8 additions & 1 deletion dip3.css
Expand Up @@ -60,7 +60,7 @@ abbr{font-variant:small-caps;text-transform:lowercase;letter-spacing:0.1em}
.q span{font-size:large}
.note{margin:3.5em 4.94em}
.note span{display:block;float:left;font-size:xx-large;line-height:0.875;margin:0 0.22em 0 -1.22em;color:steelblue}
.c,pre,.w,.w a,.d{line-height:2.154}
.c,pre,.w,.w a,.d{line-height:2.154;clear:both}
.f:first-letter{float:left;color:lightblue;padding:0.11em 4px 0 0;font:normal 4em/0.68 serif}
p,ul,ol{margin:1.75em 0;font-size:medium}

Expand Down Expand Up @@ -110,3 +110,10 @@ h2,h3{margin-top:1.75em}
#toc + h2:before{content:""}
h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "}
aside{display:block;float:right;font-style:oblique;font-size:xx-large;width:25%;margin:1.75em 0 .75em 1.75em;background:steelblue;color:white;padding:1.75em;border:1px solid;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}

/* previous/next navigation links */

.nav a{text-decoration:none;border:0;display:block}
.nav a:first-child{float:left}
.nav a:last-child{float:right}
.nav span{font-size:1000%;line-height:1;margin:0}
2 changes: 2 additions & 0 deletions iterators-and-generators.html
Expand Up @@ -570,6 +570,8 @@ <h2 id=furtherreading>Further Reading</h2>
<li><a href=http://www.python.org/dev/peps/pep-0255/>PEP 255: Simple Generators</a>
</ul>

<p class=nav><a rel=prev href=regular-expressions.html title="Back to &#8220;Regular Expressions&#8221;"><span>&#x261C;</a> <a rel=next href=advanced-iterators.html title="Onward to &#8220;Advanced Iterators&#8221;"><span>&#x261E;</span></a>

<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
1 change: 1 addition & 0 deletions mobile.css
Expand Up @@ -59,3 +59,4 @@ h1:before{content:""}
/* overrides */
.nm,.w,aside,form,form+p,.note span,.q span{display:none}
dd{margin:0 0 0 1.75em}
.nav span{font-size:200%}
1 change: 1 addition & 0 deletions native-datatypes.html
Expand Up @@ -453,6 +453,7 @@ <h2 id=furtherreading>Further Reading</h2>
<li><a href="http://www.python.org/dev/peps/pep-0237/"><abbr>PEP</abbr> 237: Unifying Long Integers and Integers</a>
<li><a href="http://www.python.org/dev/peps/pep-0238/"><abbr>PEP</abbr> 238: Changing the Division Operator</a>
</ul>
<p class=nav><a rel=prev href=your-first-python-program.html title="Back to &#8220;Your First Python Program&#8221;"><span>&#x261C;</a> <a rel=next href=strings.html title="Onward to &#8220;Strings&#8221;"><span>&#x261E;</span></a>
<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
2 changes: 2 additions & 0 deletions notes.txt
Expand Up @@ -15,7 +15,9 @@ http://www.alanwood.net/unicode/dingbats.html

&#x26A0; - white warning sign (triangle with exclamation point inside)
&#x263A; - white smiling face
&#x261C; - white left pointing index
&#x261E; - white right pointing index
&#x261A; - black left pointing index
&#x261B; - black right pointing index
&#x2620; - skull and crossbones
&#x2611; - ballot box with checkmark
Expand Down
1 change: 1 addition & 0 deletions porting-code-to-python-3-with-2to3.html
Expand Up @@ -1157,6 +1157,7 @@ <h3 id=idioms>Common idioms (explicit)</h3>
do_stuff(a_list)</code></pre></td></tr>
</table>
<p>FIXME: once the rest of the book is written, this appendix should contain copious links back to any chapter or section that touches on these features.
<p class=nav><a rel=prev href=case-study-porting-chardet-to-python-3.html title="Back to &#8220;Case Study: Porting chardet to Python 3&#8221;"><span>&#x261C;</a> <a rel=next class=todo><span>&#x261E;</span></a>
<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
1 change: 1 addition & 0 deletions regular-expressions.html
Expand Up @@ -417,6 +417,7 @@ <h2 id=summary>Summary</h2>
<li><code>(x)</code> in general is a <em>remembered group</em>. You can get the value of what matched by using the <code>groups()</code> method of the object returned by <code>re.search</code>.
</ul>
<p>Regular expressions are extremely powerful, but they are not the correct solution for every problem. You should learn enough about them to know when they are appropriate, when they will solve your problems, and when they will cause more problems than they solve.
<p class=nav><a rel=prev href=strings.html title="Back to &#8220;Strings&#8221;"><span>&#x261C;</a> <a rel=next href=iterators-and-generators.html title="Onward to &#8220;Iterators &amp; Generators&#8221;"><span>&#x261E;</span></a>
<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
2 changes: 2 additions & 0 deletions strings.html
Expand Up @@ -420,6 +420,8 @@ <h2 id=furtherreading>Further Reading</h2>
<li><a href="http://www.python.org/dev/peps/pep-3101/"><abbr>PEP</abbr> 3101: Advanced String Formatting</a>
</ul>

<p class=nav><a rel=prev href=native-datatypes.html title="Back to &#8220;Native Datatypes&#8221;"><span>&#x261C;</a> <a rel=next href=regular-expressions.html title="Onward to &#8220;Regular Expressions&#8221;"><span>&#x261E;</span></a>

<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>
1 change: 1 addition & 0 deletions your-first-python-program.html
Expand Up @@ -223,6 +223,7 @@ <h2 id=furtherreading>Further Reading</h2>
<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>
<p class=nav><a rel=prev class=todo><span>&#x261C;</a> <a rel=next href=native-datatypes.html title="Onward to &#8220;Native Datatypes&#8221;"><span>&#x261E;</span></a>
<p class=c>&copy; 2001&ndash;9 <a href=about.html>Mark Pilgrim</a>
<script src=jquery.js></script>
<script src=dip3.js></script>

0 comments on commit 78f11dd

Please sign in to comment.