PATH:
usr
/
share
/
doc
/
python-docs-2.7.5
/
html
/
library
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>27.8. abc — Abstract Base Classes — Python 2.7.5 documentation</title> <link rel="stylesheet" href="../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '2.7.5', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/sidebar.js"></script> <link rel="search" type="application/opensearchdescription+xml" title="Search within Python 2.7.5 documentation" href="../_static/opensearch.xml"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="copyright" title="Copyright" href="../copyright.html" /> <link rel="top" title="Python 2.7.5 documentation" href="../index.html" /> <link rel="up" title="27. Python Runtime Services" href="python.html" /> <link rel="next" title="27.9. atexit — Exit handlers" href="atexit.html" /> <link rel="prev" title="27.7. contextlib — Utilities for with-statement contexts" href="contextlib.html" /> <link rel="shortcut icon" type="image/png" href="../_static/py.png" /> <script type="text/javascript" src="../_static/copybutton.js"></script> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="atexit.html" title="27.9. atexit — Exit handlers" accesskey="N">next</a> |</li> <li class="right" > <a href="contextlib.html" title="27.7. contextlib — Utilities for with-statement contexts" accesskey="P">previous</a> |</li> <li><img src="../_static/py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="http://www.python.org/">Python</a> »</li> <li> <a href="../index.html">Python 2.7.5 documentation</a> » </li> <li><a href="index.html" >The Python Standard Library</a> »</li> <li><a href="python.html" accesskey="U">27. Python Runtime Services</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="module-abc"> <span id="abc-abstract-base-classes"></span><h1>27.8. <a class="reference internal" href="#module-abc" title="abc: Abstract base classes according to PEP 3119."><tt class="xref py py-mod docutils literal"><span class="pre">abc</span></tt></a> — Abstract Base Classes<a class="headerlink" href="#module-abc" title="Permalink to this headline">¶</a></h1> <p class="versionadded"> <span class="versionmodified">New in version 2.6.</span></p> <p><strong>Source code:</strong> <a class="reference external" href="http://hg.python.org/cpython/file/2.7/Lib/abc.py">Lib/abc.py</a></p> <hr class="docutils" /> <p>This module provides the infrastructure for defining <a class="reference internal" href="../glossary.html#term-abstract-base-class"><em class="xref std std-term">abstract base classes</em></a> (ABCs) in Python, as outlined in <span class="target" id="index-0"></span><a class="pep reference external" href="http://www.python.org/dev/peps/pep-3119"><strong>PEP 3119</strong></a>; see the PEP for why this was added to Python. (See also <span class="target" id="index-1"></span><a class="pep reference external" href="http://www.python.org/dev/peps/pep-3141"><strong>PEP 3141</strong></a> and the <a class="reference internal" href="numbers.html#module-numbers" title="numbers: Numeric abstract base classes (Complex, Real, Integral, etc.)."><tt class="xref py py-mod docutils literal"><span class="pre">numbers</span></tt></a> module regarding a type hierarchy for numbers based on ABCs.)</p> <p>The <a class="reference internal" href="collections.html#module-collections" title="collections: High-performance datatypes"><tt class="xref py py-mod docutils literal"><span class="pre">collections</span></tt></a> module has some concrete classes that derive from ABCs; these can, of course, be further derived. In addition the <a class="reference internal" href="collections.html#module-collections" title="collections: High-performance datatypes"><tt class="xref py py-mod docutils literal"><span class="pre">collections</span></tt></a> module has some ABCs that can be used to test whether a class or instance provides a particular interface, for example, is it hashable or a mapping.</p> <p>This module provides the following class:</p> <dl class="class"> <dt id="abc.ABCMeta"> <em class="property">class </em><tt class="descclassname">abc.</tt><tt class="descname">ABCMeta</tt><a class="headerlink" href="#abc.ABCMeta" title="Permalink to this definition">¶</a></dt> <dd><p>Metaclass for defining Abstract Base Classes (ABCs).</p> <p>Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as “virtual subclasses” – these and their descendants will be considered subclasses of the registering ABC by the built-in <a class="reference internal" href="functions.html#issubclass" title="issubclass"><tt class="xref py py-func docutils literal"><span class="pre">issubclass()</span></tt></a> function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via <a class="reference internal" href="functions.html#super" title="super"><tt class="xref py py-func docutils literal"><span class="pre">super()</span></tt></a>). <a class="footnote-reference" href="#id2" id="id1">[1]</a></p> <p>Classes created with a metaclass of <a class="reference internal" href="#abc.ABCMeta" title="abc.ABCMeta"><tt class="xref py py-class docutils literal"><span class="pre">ABCMeta</span></tt></a> have the following method:</p> <dl class="method"> <dt id="abc.ABCMeta.register"> <tt class="descname">register</tt><big>(</big><em>subclass</em><big>)</big><a class="headerlink" href="#abc.ABCMeta.register" title="Permalink to this definition">¶</a></dt> <dd><p>Register <em>subclass</em> as a “virtual subclass” of this ABC. For example:</p> <div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">ABCMeta</span> <span class="k">class</span> <span class="nc">MyABC</span><span class="p">:</span> <span class="n">__metaclass__</span> <span class="o">=</span> <span class="n">ABCMeta</span> <span class="n">MyABC</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="nb">tuple</span><span class="p">)</span> <span class="k">assert</span> <span class="nb">issubclass</span><span class="p">(</span><span class="nb">tuple</span><span class="p">,</span> <span class="n">MyABC</span><span class="p">)</span> <span class="k">assert</span> <span class="nb">isinstance</span><span class="p">((),</span> <span class="n">MyABC</span><span class="p">)</span> </pre></div> </div> </dd></dl> <p>You can also override this method in an abstract base class:</p> <dl class="method"> <dt id="abc.ABCMeta.__subclasshook__"> <tt class="descname">__subclasshook__</tt><big>(</big><em>subclass</em><big>)</big><a class="headerlink" href="#abc.ABCMeta.__subclasshook__" title="Permalink to this definition">¶</a></dt> <dd><p>(Must be defined as a class method.)</p> <p>Check whether <em>subclass</em> is considered a subclass of this ABC. This means that you can customize the behavior of <tt class="docutils literal"><span class="pre">issubclass</span></tt> further without the need to call <a class="reference internal" href="#abc.ABCMeta.register" title="abc.ABCMeta.register"><tt class="xref py py-meth docutils literal"><span class="pre">register()</span></tt></a> on every class you want to consider a subclass of the ABC. (This class method is called from the <tt class="xref py py-meth docutils literal"><span class="pre">__subclasscheck__()</span></tt> method of the ABC.)</p> <p>This method should return <tt class="docutils literal"><span class="pre">True</span></tt>, <tt class="docutils literal"><span class="pre">False</span></tt> or <tt class="docutils literal"><span class="pre">NotImplemented</span></tt>. If it returns <tt class="docutils literal"><span class="pre">True</span></tt>, the <em>subclass</em> is considered a subclass of this ABC. If it returns <tt class="docutils literal"><span class="pre">False</span></tt>, the <em>subclass</em> is not considered a subclass of this ABC, even if it would normally be one. If it returns <tt class="docutils literal"><span class="pre">NotImplemented</span></tt>, the subclass check is continued with the usual mechanism.</p> </dd></dl> <p>For a demonstration of these concepts, look at this example ABC definition:</p> <div class="highlight-python"><div class="highlight"><pre><span class="k">class</span> <span class="nc">Foo</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span> <span class="k">def</span> <span class="nf">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span> <span class="o">...</span> <span class="k">def</span> <span class="nf">__len__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="o">...</span> <span class="k">def</span> <span class="nf">get_iterator</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="nb">iter</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="k">class</span> <span class="nc">MyIterable</span><span class="p">:</span> <span class="n">__metaclass__</span> <span class="o">=</span> <span class="n">ABCMeta</span> <span class="nd">@abstractmethod</span> <span class="k">def</span> <span class="nf">__iter__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">while</span> <span class="bp">False</span><span class="p">:</span> <span class="k">yield</span> <span class="bp">None</span> <span class="k">def</span> <span class="nf">get_iterator</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">__iter__</span><span class="p">()</span> <span class="nd">@classmethod</span> <span class="k">def</span> <span class="nf">__subclasshook__</span><span class="p">(</span><span class="n">cls</span><span class="p">,</span> <span class="n">C</span><span class="p">):</span> <span class="k">if</span> <span class="n">cls</span> <span class="ow">is</span> <span class="n">MyIterable</span><span class="p">:</span> <span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="s">"__iter__"</span> <span class="ow">in</span> <span class="n">B</span><span class="o">.</span><span class="n">__dict__</span> <span class="k">for</span> <span class="n">B</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">__mro__</span><span class="p">):</span> <span class="k">return</span> <span class="bp">True</span> <span class="k">return</span> <span class="bp">NotImplemented</span> <span class="n">MyIterable</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">Foo</span><span class="p">)</span> </pre></div> </div> <p>The ABC <tt class="docutils literal"><span class="pre">MyIterable</span></tt> defines the standard iterable method, <a class="reference internal" href="../reference/datamodel.html#object.__iter__" title="object.__iter__"><tt class="xref py py-meth docutils literal"><span class="pre">__iter__()</span></tt></a>, as an abstract method. The implementation given here can still be called from subclasses. The <tt class="xref py py-meth docutils literal"><span class="pre">get_iterator()</span></tt> method is also part of the <tt class="docutils literal"><span class="pre">MyIterable</span></tt> abstract base class, but it does not have to be overridden in non-abstract derived classes.</p> <p>The <a class="reference internal" href="#abc.ABCMeta.__subclasshook__" title="abc.ABCMeta.__subclasshook__"><tt class="xref py py-meth docutils literal"><span class="pre">__subclasshook__()</span></tt></a> class method defined here says that any class that has an <a class="reference internal" href="../reference/datamodel.html#object.__iter__" title="object.__iter__"><tt class="xref py py-meth docutils literal"><span class="pre">__iter__()</span></tt></a> method in its <tt class="xref py py-attr docutils literal"><span class="pre">__dict__</span></tt> (or in that of one of its base classes, accessed via the <tt class="xref py py-attr docutils literal"><span class="pre">__mro__</span></tt> list) is considered a <tt class="docutils literal"><span class="pre">MyIterable</span></tt> too.</p> <p>Finally, the last line makes <tt class="docutils literal"><span class="pre">Foo</span></tt> a virtual subclass of <tt class="docutils literal"><span class="pre">MyIterable</span></tt>, even though it does not define an <a class="reference internal" href="../reference/datamodel.html#object.__iter__" title="object.__iter__"><tt class="xref py py-meth docutils literal"><span class="pre">__iter__()</span></tt></a> method (it uses the old-style iterable protocol, defined in terms of <a class="reference internal" href="../reference/datamodel.html#object.__len__" title="object.__len__"><tt class="xref py py-meth docutils literal"><span class="pre">__len__()</span></tt></a> and <a class="reference internal" href="../reference/datamodel.html#object.__getitem__" title="object.__getitem__"><tt class="xref py py-meth docutils literal"><span class="pre">__getitem__()</span></tt></a>). Note that this will not make <tt class="docutils literal"><span class="pre">get_iterator</span></tt> available as a method of <tt class="docutils literal"><span class="pre">Foo</span></tt>, so it is provided separately.</p> </dd></dl> <p>It also provides the following decorators:</p> <dl class="function"> <dt id="abc.abstractmethod"> <tt class="descclassname">abc.</tt><tt class="descname">abstractmethod</tt><big>(</big><em>function</em><big>)</big><a class="headerlink" href="#abc.abstractmethod" title="Permalink to this definition">¶</a></dt> <dd><p>A decorator indicating abstract methods.</p> <p>Using this decorator requires that the class’s metaclass is <a class="reference internal" href="#abc.ABCMeta" title="abc.ABCMeta"><tt class="xref py py-class docutils literal"><span class="pre">ABCMeta</span></tt></a> or is derived from it. A class that has a metaclass derived from <a class="reference internal" href="#abc.ABCMeta" title="abc.ABCMeta"><tt class="xref py py-class docutils literal"><span class="pre">ABCMeta</span></tt></a> cannot be instantiated unless all of its abstract methods and properties are overridden. The abstract methods can be called using any of the normal ‘super’ call mechanisms.</p> <p>Dynamically adding abstract methods to a class, or attempting to modify the abstraction status of a method or class once it is created, are not supported. The <a class="reference internal" href="#abc.abstractmethod" title="abc.abstractmethod"><tt class="xref py py-func docutils literal"><span class="pre">abstractmethod()</span></tt></a> only affects subclasses derived using regular inheritance; “virtual subclasses” registered with the ABC’s <tt class="xref py py-meth docutils literal"><span class="pre">register()</span></tt> method are not affected.</p> <p>Usage:</p> <div class="highlight-python"><div class="highlight"><pre><span class="k">class</span> <span class="nc">C</span><span class="p">:</span> <span class="n">__metaclass__</span> <span class="o">=</span> <span class="n">ABCMeta</span> <span class="nd">@abstractmethod</span> <span class="k">def</span> <span class="nf">my_abstract_method</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">...</span><span class="p">):</span> <span class="o">...</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Unlike Java abstract methods, these abstract methods may have an implementation. This implementation can be called via the <a class="reference internal" href="functions.html#super" title="super"><tt class="xref py py-func docutils literal"><span class="pre">super()</span></tt></a> mechanism from the class that overrides it. This could be useful as an end-point for a super-call in a framework that uses cooperative multiple-inheritance.</p> </div> </dd></dl> <dl class="function"> <dt id="abc.abstractproperty"> <tt class="descclassname">abc.</tt><tt class="descname">abstractproperty</tt><big>(</big><span class="optional">[</span><em>fget</em><span class="optional">[</span>, <em>fset</em><span class="optional">[</span>, <em>fdel</em><span class="optional">[</span>, <em>doc</em><span class="optional">]</span><span class="optional">]</span><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#abc.abstractproperty" title="Permalink to this definition">¶</a></dt> <dd><p>A subclass of the built-in <a class="reference internal" href="functions.html#property" title="property"><tt class="xref py py-func docutils literal"><span class="pre">property()</span></tt></a>, indicating an abstract property.</p> <p>Using this function requires that the class’s metaclass is <a class="reference internal" href="#abc.ABCMeta" title="abc.ABCMeta"><tt class="xref py py-class docutils literal"><span class="pre">ABCMeta</span></tt></a> or is derived from it. A class that has a metaclass derived from <a class="reference internal" href="#abc.ABCMeta" title="abc.ABCMeta"><tt class="xref py py-class docutils literal"><span class="pre">ABCMeta</span></tt></a> cannot be instantiated unless all of its abstract methods and properties are overridden. The abstract properties can be called using any of the normal ‘super’ call mechanisms.</p> <p>Usage:</p> <div class="highlight-python"><div class="highlight"><pre><span class="k">class</span> <span class="nc">C</span><span class="p">:</span> <span class="n">__metaclass__</span> <span class="o">=</span> <span class="n">ABCMeta</span> <span class="nd">@abstractproperty</span> <span class="k">def</span> <span class="nf">my_abstract_property</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="o">...</span> </pre></div> </div> <p>This defines a read-only property; you can also define a read-write abstract property using the ‘long’ form of property declaration:</p> <div class="highlight-python"><div class="highlight"><pre><span class="k">class</span> <span class="nc">C</span><span class="p">:</span> <span class="n">__metaclass__</span> <span class="o">=</span> <span class="n">ABCMeta</span> <span class="k">def</span> <span class="nf">getx</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="o">...</span> <span class="k">def</span> <span class="nf">setx</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span> <span class="o">...</span> <span class="n">x</span> <span class="o">=</span> <span class="n">abstractproperty</span><span class="p">(</span><span class="n">getx</span><span class="p">,</span> <span class="n">setx</span><span class="p">)</span> </pre></div> </div> </dd></dl> <p class="rubric">Footnotes</p> <table class="docutils footnote" frame="void" id="id2" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a class="fn-backref" href="#id1">[1]</a></td><td>C++ programmers should note that Python’s virtual base class concept is not the same as C++’s.</td></tr> </tbody> </table> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="contextlib.html" title="previous chapter">27.7. <tt class="docutils literal"><span class="pre">contextlib</span></tt> — Utilities for <tt class="docutils literal"><span class="pre">with</span></tt>-statement contexts</a></p> <h4>Next topic</h4> <p class="topless"><a href="atexit.html" title="next chapter">27.9. <tt class="docutils literal"><span class="pre">atexit</span></tt> — Exit handlers</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../bugs.html">Report a Bug</a></li> <li><a href="../_sources/library/abc.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="atexit.html" title="27.9. atexit — Exit handlers" >next</a> |</li> <li class="right" > <a href="contextlib.html" title="27.7. contextlib — Utilities for with-statement contexts" >previous</a> |</li> <li><img src="../_static/py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="http://www.python.org/">Python</a> »</li> <li> <a href="../index.html">Python 2.7.5 documentation</a> » </li> <li><a href="index.html" >The Python Standard Library</a> »</li> <li><a href="python.html" >27. Python Runtime Services</a> »</li> </ul> </div> <div class="footer"> © <a href="../copyright.html">Copyright</a> 1990-2019, Python Software Foundation. <br /> The Python Software Foundation is a non-profit corporation. <a href="http://www.python.org/psf/donations/">Please donate.</a> <br /> Last updated on Jul 03, 2019. <a href="../bugs.html">Found a bug</a>? <br /> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>
[+]
..
[-] cookie.html
[edit]
[-] email.html
[edit]
[-] rfc822.html
[edit]
[-] mac.html
[edit]
[-] xml.etree.elementtree.html
[edit]
[-] xml.sax.html
[edit]
[-] formatter.html
[edit]
[-] rexec.html
[edit]
[-] pprint.html
[edit]
[-] crypt.html
[edit]
[-] future_builtins.html
[edit]
[-] queue.html
[edit]
[-] ipc.html
[edit]
[-] ftplib.html
[edit]
[-] doctest.html
[edit]
[-] inspect.html
[edit]
[-] multifile.html
[edit]
[-] commands.html
[edit]
[-] tk.html
[edit]
[-] mimewriter.html
[edit]
[-] i18n.html
[edit]
[-] simplehttpserver.html
[edit]
[-] msilib.html
[edit]
[-] misc.html
[edit]
[-] codecs.html
[edit]
[-] compileall.html
[edit]
[-] cd.html
[edit]
[-] nntplib.html
[edit]
[-] itertools.html
[edit]
[-] textwrap.html
[edit]
[-] urllib.html
[edit]
[-] ctypes.html
[edit]
[-] site.html
[edit]
[-] imgfile.html
[edit]
[-] statvfs.html
[edit]
[-] math.html
[edit]
[-] __builtin__.html
[edit]
[-] code.html
[edit]
[-] fpectl.html
[edit]
[-] mmap.html
[edit]
[-] shelve.html
[edit]
[-] mhlib.html
[edit]
[-] bastion.html
[edit]
[-] readline.html
[edit]
[-] resource.html
[edit]
[-] functions.html
[edit]
[-] crypto.html
[edit]
[-] argparse.html
[edit]
[-] email.mime.html
[edit]
[-] imp.html
[edit]
[-] asyncore.html
[edit]
[-] sha.html
[edit]
[-] webbrowser.html
[edit]
[-] signal.html
[edit]
[-] grp.html
[edit]
[-] undoc.html
[edit]
[-] fractions.html
[edit]
[-] sunau.html
[edit]
[-] xmlrpclib.html
[edit]
[-] dis.html
[edit]
[-] audioop.html
[edit]
[-] termios.html
[edit]
[-] base64.html
[edit]
[-] fcntl.html
[edit]
[-] poplib.html
[edit]
[-] shlex.html
[edit]
[-] gc.html
[edit]
[-] tokenize.html
[edit]
[-] xml.sax.reader.html
[edit]
[-] types.html
[edit]
[-] modulefinder.html
[edit]
[-] locale.html
[edit]
[-] unix.html
[edit]
[-] fileinput.html
[edit]
[-] bdb.html
[edit]
[-] test.html
[edit]
[-] bsddb.html
[edit]
[-] anydbm.html
[edit]
[-] sun.html
[edit]
[-] email.header.html
[edit]
[-] zipimport.html
[edit]
[-] ossaudiodev.html
[edit]
[-] importlib.html
[edit]
[-] logging.handlers.html
[edit]
[-] email.generator.html
[edit]
[-] keyword.html
[edit]
[-] sched.html
[edit]
[-] zipfile.html
[edit]
[-] random.html
[edit]
[-] debug.html
[edit]
[-] aetypes.html
[edit]
[-] gl.html
[edit]
[-] marshal.html
[edit]
[-] mailcap.html
[edit]
[-] getopt.html
[edit]
[-] urllib2.html
[edit]
[-] codeop.html
[edit]
[-] fm.html
[edit]
[-] email.errors.html
[edit]
[-] atexit.html
[edit]
[-] stringio.html
[edit]
[-] python.html
[edit]
[-] threading.html
[edit]
[-] logging.config.html
[edit]
[-] gensuitemodule.html
[edit]
[-] email.encoders.html
[edit]
[-] fnmatch.html
[edit]
[-] intro.html
[edit]
[-] compiler.html
[edit]
[-] cmd.html
[edit]
[-] glob.html
[edit]
[-] ssl.html
[edit]
[-] pydoc.html
[edit]
[-] unittest.html
[edit]
[-] copy_reg.html
[edit]
[-] io.html
[edit]
[-] array.html
[edit]
[-] contextlib.html
[edit]
[-] colorpicker.html
[edit]
[-] numbers.html
[edit]
[-] autogil.html
[edit]
[-] docxmlrpcserver.html
[edit]
[-] aifc.html
[edit]
[-] simplexmlrpcserver.html
[edit]
[-] hotshot.html
[edit]
[-] modules.html
[edit]
[-] constants.html
[edit]
[-] py_compile.html
[edit]
[-] syslog.html
[edit]
[-] optparse.html
[edit]
[-] pwd.html
[edit]
[-] pdb.html
[edit]
[-] stringprep.html
[edit]
[-] user.html
[edit]
[-] numeric.html
[edit]
[-] index.html
[edit]
[-] __main__.html
[edit]
[-] new.html
[edit]
[-] bisect.html
[edit]
[-] mimetools.html
[edit]
[-] thread.html
[edit]
[-] internet.html
[edit]
[-] timeit.html
[edit]
[-] sysconfig.html
[edit]
[-] filesys.html
[edit]
[-] datatypes.html
[edit]
[-] popen2.html
[edit]
[-] tabnanny.html
[edit]
[-] 2to3.html
[edit]
[-] select.html
[edit]
[-] copy.html
[edit]
[-] hashlib.html
[edit]
[-] filecmp.html
[edit]
[-] uuid.html
[edit]
[-] email.parser.html
[edit]
[-] restricted.html
[edit]
[-] token.html
[edit]
[-] mm.html
[edit]
[-] nis.html
[edit]
[-] warnings.html
[edit]
[-] sgi.html
[edit]
[-] windows.html
[edit]
[-] runpy.html
[edit]
[-] symbol.html
[edit]
[-] idle.html
[edit]
[-] language.html
[edit]
[-] plistlib.html
[edit]
[-] tkinter.html
[edit]
[-] parser.html
[edit]
[-] uu.html
[edit]
[-] netrc.html
[edit]
[-] heapq.html
[edit]
[-] linecache.html
[edit]
[-] tty.html
[edit]
[-] macostools.html
[edit]
[-] dummy_threading.html
[edit]
[-] csv.html
[edit]
[-] macosa.html
[edit]
[-] whichdb.html
[edit]
[-] xml.dom.minidom.html
[edit]
[-] xml.sax.handler.html
[edit]
[-] sqlite3.html
[edit]
[-] wave.html
[edit]
[-] curses.panel.html
[edit]
[-] fileformats.html
[edit]
[-] urlparse.html
[edit]
[-] binascii.html
[edit]
[-] fl.html
[edit]
[-] frameworks.html
[edit]
[-] someos.html
[edit]
[-] macpath.html
[edit]
[-] sets.html
[edit]
[-] socket.html
[edit]
[-] mutex.html
[edit]
[-] xml.html
[edit]
[-] robotparser.html
[edit]
[-] mimetypes.html
[edit]
[-] posixfile.html
[edit]
[-] imputil.html
[edit]
[-] othergui.html
[edit]
[-] archiving.html
[edit]
[-] pyexpat.html
[edit]
[-] tix.html
[edit]
[-] repr.html
[edit]
[-] aepack.html
[edit]
[-] dbm.html
[edit]
[-] xml.dom.html
[edit]
[-] mailbox.html
[edit]
[-] pkgutil.html
[edit]
[-] htmllib.html
[edit]
[-] struct.html
[edit]
[-] exceptions.html
[edit]
[-] imghdr.html
[edit]
[-] curses.ascii.html
[edit]
[-] gdbm.html
[edit]
[-] gettext.html
[edit]
[-] hmac.html
[edit]
[-] imaplib.html
[edit]
[-] email.charset.html
[edit]
[-] email-examples.html
[edit]
[-] cgitb.html
[edit]
[-] cookielib.html
[edit]
[-] os.path.html
[edit]
[-] userdict.html
[edit]
[-] binhex.html
[edit]
[-] basehttpserver.html
[edit]
[-] colorsys.html
[edit]
[-] dummy_thread.html
[edit]
[-] jpeg.html
[edit]
[-] smtplib.html
[edit]
[-] turtle.html
[edit]
[-] re.html
[edit]
[-] dircache.html
[edit]
[-] functools.html
[edit]
[-] markup.html
[edit]
[-] spwd.html
[edit]
[-] sunaudio.html
[edit]
[-] platform.html
[edit]
[-] logging.html
[edit]
[-] smtpd.html
[edit]
[-] persistence.html
[edit]
[-] macos.html
[edit]
[-] telnetlib.html
[edit]
[-] sndhdr.html
[edit]
[-] json.html
[edit]
[-] pty.html
[edit]
[-] subprocess.html
[edit]
[-] profile.html
[edit]
[-] ic.html
[edit]
[-] dbhash.html
[edit]
[-] stdtypes.html
[edit]
[-] decimal.html
[edit]
[-] sys.html
[edit]
[-] cgi.html
[edit]
[-] wsgiref.html
[edit]
[-] winsound.html
[edit]
[-] quopri.html
[edit]
[-] os.html
[edit]
[-] xml.sax.utils.html
[edit]
[-] posix.html
[edit]
[-] string.html
[edit]
[-] datetime.html
[edit]
[-] tempfile.html
[edit]
[-] multiprocessing.html
[edit]
[-] msvcrt.html
[edit]
[-] rlcompleter.html
[edit]
[-] httplib.html
[edit]
[-] cmath.html
[edit]
[-] mimify.html
[edit]
[-] stat.html
[edit]
[-] sgmllib.html
[edit]
[-] development.html
[edit]
[-] cgihttpserver.html
[edit]
[-] email.message.html
[edit]
[-] gzip.html
[edit]
[-] getpass.html
[edit]
[-] imageop.html
[edit]
[-] symtable.html
[edit]
[-] time.html
[edit]
[-] netdata.html
[edit]
[-] zlib.html
[edit]
[-] collections.html
[edit]
[-] operator.html
[edit]
[-] easydialogs.html
[edit]
[-] _winreg.html
[edit]
[-] socketserver.html
[edit]
[-] weakref.html
[edit]
[-] tarfile.html
[edit]
[-] carbon.html
[edit]
[-] strings.html
[edit]
[-] distutils.html
[edit]
[-] difflib.html
[edit]
[-] email.util.html
[edit]
[-] shutil.html
[edit]
[-] pickletools.html
[edit]
[-] curses.html
[edit]
[-] ast.html
[edit]
[-] aetools.html
[edit]
[-] allos.html
[edit]
[-] pickle.html
[edit]
[-] calendar.html
[edit]
[-] configparser.html
[edit]
[-] chunk.html
[edit]
[-] email.iterators.html
[edit]
[-] trace.html
[edit]
[-] asynchat.html
[edit]
[-] __future__.html
[edit]
[-] pyclbr.html
[edit]
[-] al.html
[edit]
[-] dl.html
[edit]
[-] miniaeframe.html
[edit]
[-] abc.html
[edit]
[-] errno.html
[edit]
[-] xml.dom.pulldom.html
[edit]
[-] xdrlib.html
[edit]
[-] scrolledtext.html
[edit]
[-] framework.html
[edit]
[-] md5.html
[edit]
[-] unicodedata.html
[edit]
[-] ttk.html
[edit]
[-] fpformat.html
[edit]
[-] htmlparser.html
[edit]
[-] custominterp.html
[edit]
[-] dumbdbm.html
[edit]
[-] bz2.html
[edit]
[-] pipes.html
[edit]
[-] traceback.html
[edit]