mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
whats-new, more special-method-names, typography fiddling
This commit is contained in:
@@ -20,6 +20,8 @@ body{counter-reset:h1 11}
|
||||
<h2 id=divingin>Diving In</h2>
|
||||
<p class=f>FIXME
|
||||
|
||||
<h2 id=ordereddict>Ordered Dictionary: Not An Oxymoron</h2>
|
||||
|
||||
<p class=d>[<a href=examples/ordereddict.py>download <code>ordereddict.py</code></a>]
|
||||
<pre><code>import collections
|
||||
import itertools
|
||||
@@ -92,6 +94,8 @@ class OrderedDict(dict, collections.MutableMapping):
|
||||
return all(p==q for p, q in itertools.zip_longest(self.items(), other.items()))
|
||||
return dict.__eq__(self, other)</code></pre>
|
||||
|
||||
<h2 id=implementing-fractions>Implementing Fractions</h2>
|
||||
|
||||
<p class=nav><a rel=prev class=todo><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>
|
||||
|
||||
Reference in New Issue
Block a user