1. Ranjith Kumar
  2. Python 3 Patterns & Idioms

Source

Python 3 Patterns & Idioms / html / index.html

<!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>Python 3 Patterns &amp; Idioms &mdash; Python 3 Patterns &amp; Idioms</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:     '1.0',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/favicon.ico"/>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="Python 3 Patterns &amp; Idioms" href="" />
    <link rel="next" title="Contributors" href="Contributors.html" /> 
  </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="Contributors.html" title="Contributors"
             accesskey="N">next</a> |</li>
        <li><a href="">Python 3 Patterns &amp; Idioms</a> &raquo;</li> 
      </ul>
    </div>  
    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  
  <div class="section" id="python-3-patterns-idioms">
<h1>Python 3 Patterns &amp; Idioms<a class="headerlink" href="#python-3-patterns-idioms" title="Permalink to this headline"></a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="Contributors.html">Contributors</a><ul>
<li class="toctree-l2"><a class="reference external" href="Contributors.html#thanks-to">Thanks To</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="ToDo.html">ToDo List</a></li>
<li class="toctree-l1"><a class="reference external" href="ToDo.html#the-remainder-are-from-context-from-the-book">The remainder are from context, from the book.</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="NoteToReaders.html">A Note To Readers</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Introduction.html">Introduction</a><ul>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#a-team-effort">A Team Effort</a></li>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#not-an-introductory-book">Not an Introductory Book</a></li>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#the-license">The License</a></li>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#the-printed-book">The Printed Book</a></li>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#translations">Translations</a></li>
<li class="toctree-l2"><a class="reference external" href="Introduction.html#my-motives">My Motives</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="TeachingSupport.html">Teaching Support</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Rules.html">Book Development Rules</a><ul>
<li class="toctree-l2"><a class="reference external" href="Rules.html#contribute-what-you-can">Contribute What You Can</a></li>
<li class="toctree-l2"><a class="reference external" href="Rules.html#don-t-get-attached">Don&#8217;t Get Attached</a></li>
<li class="toctree-l2"><a class="reference external" href="Rules.html#credit">Credit</a></li>
<li class="toctree-l2"><a class="reference external" href="Rules.html#mechanics">Mechanics</a></li>
<li class="toctree-l2"><a class="reference external" href="Rules.html#diagrams">Diagrams</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="DeveloperGuide.html">Developer Guide</a><ul>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#getting-started-the-easiest-approach">Getting Started: The Easiest Approach</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#for-windows-users">For Windows Users</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#installing-sphinx">Installing Sphinx</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#getting-the-development-branch-of-the-book">Getting the Development Branch of the Book</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#building-the-book">Building the Book</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#building-the-pdf">Building the PDF</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#working-with-bitbucket-and-mercurial">Working with BitBucket and Mercurial</a></li>
<li class="toctree-l2"><a class="reference external" href="DeveloperGuide.html#a-simple-overview-of-editing-and-merging">A Simple Overview Of Editing and Merging</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Part1.html">Part I: Foundations</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="LanguageChanges.html">Python 3 Language Changes</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="PythonDecorators.html">Decorators</a><ul>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#decorators-vs-the-decorator-pattern">Decorators vs. the Decorator Pattern</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#history-of-macros">History of Macros</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#the-goal-of-macros">The Goal of Macros</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#what-can-you-do-with-decorators">What Can You Do With Decorators?</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#function-decorators">Function Decorators</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#slightly-more-useful">Slightly More Useful</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#using-functions-as-decorators">Using Functions as Decorators</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#review-decorators-without-arguments">Review: Decorators without Arguments</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#decorators-with-arguments">Decorators with Arguments</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#decorator-functions-with-decorator-arguments">Decorator Functions with Decorator Arguments</a></li>
<li class="toctree-l2"><a class="reference external" href="PythonDecorators.html#further-reading">Further Reading</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="GeneratorsIterators.html">Generators, Iterators, and Itertools</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Comprehensions.html">Comprehensions</a><ul>
<li class="toctree-l2"><a class="reference external" href="Comprehensions.html#a-more-complex-example">A More Complex Example</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="CoroutinesAndConcurrency.html">Coroutines &amp; Concurrency</a><ul>
<li class="toctree-l2"><a class="reference external" href="CoroutinesAndConcurrency.html#further-reading">Further Reading</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Part2.html">Part II: Idioms</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="MachineDiscovery.html">Discovering the Details About Your Platform</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="CanonicalScript.html">A Canonical Form for Command-Line Programs</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Messenger.html">Messenger/Data Transfer Object</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference external" href="Part3.html">Part III: Patterns</a></li>
</ul>
</div>
<div class="section" id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li><a class="reference external" href="genindex.html"><em>Index</em></a></li>
<li><a class="reference external" href="search.html"><em>Search Page</em></a></li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="">
              <img class="logo" src="_static/Logo.png" alt="Logo"/>
            </a></p>
    <font color="Red">This book is in early development; you will find parts that are incorrect &amp; incomplete.</font>
    
            <h3><a href="">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="">Python 3 Patterns &amp; Idioms</a><ul>
</ul>
</li>
<li><a class="reference external" href="#indices-and-tables">Indices and tables</a></li>
</ul>


            <h4>Next topic</h4>
            <p class="topless"><a href="Contributors.html" title="next chapter">Contributors</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/index.txt">Show Source</a></li>
            </ul>
    
          <h3>Quick search</h3>
            <form class="search" action="search.html" method="get">
              <input type="text" name="q" size="18" /> <input type="submit" value="Go" />
              <input type="hidden" name="check_keywords" value="yes" />
              <input type="hidden" name="area" value="default" />
            </form>
    <h4><a href="http://www.mindviewinc.com/Books/Python3Patterns/Index.php">Project Homepage</a></h4>
    <h4><a href="http://www.bitbucket.org/BruceEckel/python-3-patterns-idioms/issues/">Corrections/Suggestions</a></h4>
    <h4><a href="http://www.mindviewinc.com/Consulting/Index.php">Consulting &amp; Training</a></h4><br><br>

        </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"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="Contributors.html" title="Contributors"
             accesskey="N">next</a> |</li>
        <li><a href="">Python 3 Patterns &amp; Idioms</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2008, Creative Commons Attribution-Share Alike 3.0.
      Last updated on Nov 25, 2008.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.5.
    </div>
  </body>
</html>