mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
some prev/next navigation links between chapters
This commit is contained in:
@@ -415,6 +415,8 @@ for guess in itertools.permutations(digits, len(characters)):
|
||||
|
||||
<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 “Iterators & Generators”"><span>☜</a> <a rel=next class=todo><span>☞</span></a>
|
||||
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -1177,6 +1177,9 @@ tests\EUC-JP\arclamp.jp.xml EUC-JP with confide
|
||||
<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>☜</a> <a rel=next href=porting-code-to-python-3-with-2to3.html title="onward to “Porting Code to Python 3 with 2to3”"><span>☞</span></a>
|
||||
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
@@ -570,6 +570,8 @@ rules = LazyRules()</code></pre>
|
||||
<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 “Regular Expressions”"><span>☜</a> <a rel=next href=advanced-iterators.html title="Onward to “Advanced Iterators”"><span>☞</span></a>
|
||||
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -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%}
|
||||
@@ -453,6 +453,7 @@ KeyError: 'db.diveintopython3.org'</samp></pre>
|
||||
<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 “Your First Python Program”"><span>☜</a> <a rel=next href=strings.html title="Onward to “Strings”"><span>☞</span></a>
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -15,7 +15,9 @@ http://www.alanwood.net/unicode/dingbats.html
|
||||
|
||||
⚠ - white warning sign (triangle with exclamation point inside)
|
||||
☺ - white smiling face
|
||||
☜ - white left pointing index
|
||||
☞ - white right pointing index
|
||||
☚ - black left pointing index
|
||||
☛ - black right pointing index
|
||||
☠ - skull and crossbones
|
||||
☑ - ballot box with checkmark
|
||||
|
||||
@@ -1157,6 +1157,7 @@ do_stuff(a_list)</code></pre></td>
|
||||
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 “Case Study: Porting chardet to Python 3”"><span>☜</a> <a rel=next class=todo><span>☞</span></a>
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -417,6 +417,7 @@ body{counter-reset:h1 4}
|
||||
<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 “Strings”"><span>☜</a> <a rel=next href=iterators-and-generators.html title="Onward to “Iterators & Generators”"><span>☞</span></a>
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -420,6 +420,8 @@ FIXME: move this to the intro of the upcoming files chapter?
|
||||
<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 “Native Datatypes”"><span>☜</a> <a rel=next href=regular-expressions.html title="Onward to “Regular Expressions”"><span>☞</span></a>
|
||||
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
@@ -223,6 +223,7 @@ if __name__ == "__main__":
|
||||
<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>☜</a> <a rel=next href=native-datatypes.html title="Onward to “Native Datatypes”"><span>☞</span></a>
|
||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||
<script src=jquery.js></script>
|
||||
<script src=dip3.js></script>
|
||||
|
||||
Reference in New Issue
Block a user