Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 91bb3c9e1324baf3de1e1ab7cfe48dc0 > files > 947

python-docs-2.7.1-6.1.mga1.i586.rpm

<!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>8.15. types — Names for built-in types &mdash; Python v2.7.1 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.1',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="search" type="application/opensearchdescription+xml"
          title="Search within Python v2.7.1 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 v2.7.1 documentation" href="../index.html" />
    <link rel="up" title="8. Data Types" href="datatypes.html" />
    <link rel="next" title="8.16. new — Creation of runtime internal objects" href="new.html" />
    <link rel="prev" title="8.12. UserDict — Class wrapper for dictionary objects" href="userdict.html" />
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
 

  </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="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="new.html" title="8.16. new — Creation of runtime internal objects"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="userdict.html" title="8.12. UserDict — Class wrapper for dictionary objects"
             accesskey="P">previous</a> |</li>
        <li><img src="../_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="../index.html">Python v2.7.1 documentation</a> &raquo;</li>

          <li><a href="index.html" >The Python Standard Library</a> &raquo;</li>
          <li><a href="datatypes.html" accesskey="U">8. Data Types</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-types">
<h1>8.15. <tt class="xref docutils literal"><span class="pre">types</span></tt> &#8212; Names for built-in types<a class="headerlink" href="#module-types" title="Permalink to this headline">¶</a></h1>
<p>This module defines names for some object types that are used by the standard
Python interpreter, but not for the types defined by various extension modules.
Also, it does not include some of the types that arise during processing such as
the <tt class="docutils literal"><span class="pre">listiterator</span></tt> type. It is safe to use <tt class="docutils literal"><span class="pre">from</span> <span class="pre">types</span> <span class="pre">import</span> <span class="pre">*</span></tt> &#8212; the
module does not export any names besides the ones listed here. New names
exported by future versions of this module will all end in <tt class="docutils literal"><span class="pre">Type</span></tt>.</p>
<p>Typical use is for functions that do different things depending on their
argument types, like the following:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">types</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">def</span> <span class="nf">delete</span><span class="p">(</span><span class="n">mylist</span><span class="p">,</span> <span class="n">item</span><span class="p">):</span>
    <span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">item</span><span class="p">)</span> <span class="ow">is</span> <span class="n">IntType</span><span class="p">:</span>
       <span class="k">del</span> <span class="n">mylist</span><span class="p">[</span><span class="n">item</span><span class="p">]</span>
    <span class="k">else</span><span class="p">:</span>
       <span class="n">mylist</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">item</span><span class="p">)</span>
</pre></div>
</div>
<p>Starting in Python 2.2, built-in factory functions such as <a title="int" class="reference external" href="functions.html#int"><tt class="xref docutils literal"><span class="pre">int()</span></tt></a> and
<a title="str" class="reference external" href="functions.html#str"><tt class="xref docutils literal"><span class="pre">str()</span></tt></a> are also names for the corresponding types.  This is now the
preferred way to access the type instead of using the <tt class="xref docutils literal"><span class="pre">types</span></tt> module.
Accordingly, the example above should be written as follows:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">delete</span><span class="p">(</span><span class="n">mylist</span><span class="p">,</span> <span class="n">item</span><span class="p">):</span>
    <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">item</span><span class="p">,</span> <span class="nb">int</span><span class="p">):</span>
       <span class="k">del</span> <span class="n">mylist</span><span class="p">[</span><span class="n">item</span><span class="p">]</span>
    <span class="k">else</span><span class="p">:</span>
       <span class="n">mylist</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">item</span><span class="p">)</span>
</pre></div>
</div>
<p>The module defines the following names:</p>
<dl class="data">
<dt id="types.NoneType">
<tt class="descclassname">types.</tt><tt class="descname">NoneType</tt><a class="headerlink" href="#types.NoneType" title="Permalink to this definition">¶</a></dt>
<dd>The type of <tt class="xref docutils literal"><span class="pre">None</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.TypeType">
<tt class="descclassname">types.</tt><tt class="descname">TypeType</tt><a class="headerlink" href="#types.TypeType" title="Permalink to this definition">¶</a></dt>
<dd><p id="index-719">The type of type objects (such as returned by <a title="type" class="reference external" href="functions.html#type"><tt class="xref docutils literal"><span class="pre">type()</span></tt></a>); alias of the
built-in <a title="type" class="reference external" href="functions.html#type"><tt class="xref docutils literal"><span class="pre">type</span></tt></a>.</p>
</dd></dl>

<dl class="data">
<dt id="types.BooleanType">
<tt class="descclassname">types.</tt><tt class="descname">BooleanType</tt><a class="headerlink" href="#types.BooleanType" title="Permalink to this definition">¶</a></dt>
<dd><p>The type of the <a title="bool" class="reference external" href="functions.html#bool"><tt class="xref docutils literal"><span class="pre">bool</span></tt></a> values <tt class="xref docutils literal"><span class="pre">True</span></tt> and <tt class="xref docutils literal"><span class="pre">False</span></tt>; alias of the
built-in <a title="bool" class="reference external" href="functions.html#bool"><tt class="xref docutils literal"><span class="pre">bool</span></tt></a>.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.3.</span></p>
</dd></dl>

<dl class="data">
<dt id="types.IntType">
<tt class="descclassname">types.</tt><tt class="descname">IntType</tt><a class="headerlink" href="#types.IntType" title="Permalink to this definition">¶</a></dt>
<dd>The type of integers (e.g. <tt class="docutils literal"><span class="pre">1</span></tt>); alias of the built-in <a title="int" class="reference external" href="functions.html#int"><tt class="xref docutils literal"><span class="pre">int</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.LongType">
<tt class="descclassname">types.</tt><tt class="descname">LongType</tt><a class="headerlink" href="#types.LongType" title="Permalink to this definition">¶</a></dt>
<dd>The type of long integers (e.g. <tt class="docutils literal"><span class="pre">1L</span></tt>); alias of the built-in <a title="long" class="reference external" href="functions.html#long"><tt class="xref docutils literal"><span class="pre">long</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.FloatType">
<tt class="descclassname">types.</tt><tt class="descname">FloatType</tt><a class="headerlink" href="#types.FloatType" title="Permalink to this definition">¶</a></dt>
<dd>The type of floating point numbers (e.g. <tt class="docutils literal"><span class="pre">1.0</span></tt>); alias of the built-in
<a title="float" class="reference external" href="functions.html#float"><tt class="xref docutils literal"><span class="pre">float</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.ComplexType">
<tt class="descclassname">types.</tt><tt class="descname">ComplexType</tt><a class="headerlink" href="#types.ComplexType" title="Permalink to this definition">¶</a></dt>
<dd>The type of complex numbers (e.g. <tt class="docutils literal"><span class="pre">1.0j</span></tt>).  This is not defined if Python was
built without complex number support.</dd></dl>

<dl class="data">
<dt id="types.StringType">
<tt class="descclassname">types.</tt><tt class="descname">StringType</tt><a class="headerlink" href="#types.StringType" title="Permalink to this definition">¶</a></dt>
<dd>The type of character strings (e.g. <tt class="docutils literal"><span class="pre">'Spam'</span></tt>); alias of the built-in
<a title="str" class="reference external" href="functions.html#str"><tt class="xref docutils literal"><span class="pre">str</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.UnicodeType">
<tt class="descclassname">types.</tt><tt class="descname">UnicodeType</tt><a class="headerlink" href="#types.UnicodeType" title="Permalink to this definition">¶</a></dt>
<dd>The type of Unicode character strings (e.g. <tt class="docutils literal"><span class="pre">u'Spam'</span></tt>).  This is not defined
if Python was built without Unicode support.  It&#8217;s an alias of the built-in
<a title="unicode" class="reference external" href="functions.html#unicode"><tt class="xref docutils literal"><span class="pre">unicode</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.TupleType">
<tt class="descclassname">types.</tt><tt class="descname">TupleType</tt><a class="headerlink" href="#types.TupleType" title="Permalink to this definition">¶</a></dt>
<dd>The type of tuples (e.g. <tt class="docutils literal"><span class="pre">(1,</span> <span class="pre">2,</span> <span class="pre">3,</span> <span class="pre">'Spam')</span></tt>); alias of the built-in
<a title="tuple" class="reference external" href="functions.html#tuple"><tt class="xref docutils literal"><span class="pre">tuple</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.ListType">
<tt class="descclassname">types.</tt><tt class="descname">ListType</tt><a class="headerlink" href="#types.ListType" title="Permalink to this definition">¶</a></dt>
<dd>The type of lists (e.g. <tt class="docutils literal"><span class="pre">[0,</span> <span class="pre">1,</span> <span class="pre">2,</span> <span class="pre">3]</span></tt>); alias of the built-in
<a title="list" class="reference external" href="functions.html#list"><tt class="xref docutils literal"><span class="pre">list</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.DictType">
<tt class="descclassname">types.</tt><tt class="descname">DictType</tt><a class="headerlink" href="#types.DictType" title="Permalink to this definition">¶</a></dt>
<dd>The type of dictionaries (e.g. <tt class="docutils literal"><span class="pre">{'Bacon':</span> <span class="pre">1,</span> <span class="pre">'Ham':</span> <span class="pre">0}</span></tt>); alias of the
built-in <a title="dict" class="reference external" href="stdtypes.html#dict"><tt class="xref docutils literal"><span class="pre">dict</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.DictionaryType">
<tt class="descclassname">types.</tt><tt class="descname">DictionaryType</tt><a class="headerlink" href="#types.DictionaryType" title="Permalink to this definition">¶</a></dt>
<dd>An alternate name for <tt class="docutils literal"><span class="pre">DictType</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.FunctionType">
<tt class="descclassname">types.</tt><tt class="descname">FunctionType</tt><a class="headerlink" href="#types.FunctionType" title="Permalink to this definition">¶</a></dt>
<dt id="types.LambdaType">
<tt class="descclassname">types.</tt><tt class="descname">LambdaType</tt><a class="headerlink" href="#types.LambdaType" title="Permalink to this definition">¶</a></dt>
<dd>The type of user-defined functions and functions created by <a class="reference external" href="../reference/expressions.html#lambda"><tt class="xref docutils literal"><span class="pre">lambda</span></tt></a>
expressions.</dd></dl>

<dl class="data">
<dt id="types.GeneratorType">
<tt class="descclassname">types.</tt><tt class="descname">GeneratorType</tt><a class="headerlink" href="#types.GeneratorType" title="Permalink to this definition">¶</a></dt>
<dd><p>The type of <a class="reference external" href="../glossary.html#term-generator"><em class="xref">generator</em></a>-iterator objects, produced by calling a
generator function.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.2.</span></p>
</dd></dl>

<dl class="data">
<dt id="types.CodeType">
<tt class="descclassname">types.</tt><tt class="descname">CodeType</tt><a class="headerlink" href="#types.CodeType" title="Permalink to this definition">¶</a></dt>
<dd><p id="index-720">The type for code objects such as returned by <a title="compile" class="reference external" href="functions.html#compile"><tt class="xref docutils literal"><span class="pre">compile()</span></tt></a>.</p>
</dd></dl>

<dl class="data">
<dt id="types.ClassType">
<tt class="descclassname">types.</tt><tt class="descname">ClassType</tt><a class="headerlink" href="#types.ClassType" title="Permalink to this definition">¶</a></dt>
<dd>The type of user-defined old-style classes.</dd></dl>

<dl class="data">
<dt id="types.InstanceType">
<tt class="descclassname">types.</tt><tt class="descname">InstanceType</tt><a class="headerlink" href="#types.InstanceType" title="Permalink to this definition">¶</a></dt>
<dd>The type of instances of user-defined classes.</dd></dl>

<dl class="data">
<dt id="types.MethodType">
<tt class="descclassname">types.</tt><tt class="descname">MethodType</tt><a class="headerlink" href="#types.MethodType" title="Permalink to this definition">¶</a></dt>
<dd>The type of methods of user-defined class instances.</dd></dl>

<dl class="data">
<dt id="types.UnboundMethodType">
<tt class="descclassname">types.</tt><tt class="descname">UnboundMethodType</tt><a class="headerlink" href="#types.UnboundMethodType" title="Permalink to this definition">¶</a></dt>
<dd>An alternate name for <tt class="docutils literal"><span class="pre">MethodType</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.BuiltinFunctionType">
<tt class="descclassname">types.</tt><tt class="descname">BuiltinFunctionType</tt><a class="headerlink" href="#types.BuiltinFunctionType" title="Permalink to this definition">¶</a></dt>
<dt id="types.BuiltinMethodType">
<tt class="descclassname">types.</tt><tt class="descname">BuiltinMethodType</tt><a class="headerlink" href="#types.BuiltinMethodType" title="Permalink to this definition">¶</a></dt>
<dd>The type of built-in functions like <a title="len" class="reference external" href="functions.html#len"><tt class="xref docutils literal"><span class="pre">len()</span></tt></a> or <a title="sys.exit" class="reference external" href="sys.html#sys.exit"><tt class="xref docutils literal"><span class="pre">sys.exit()</span></tt></a>, and
methods of built-in classes.  (Here, the term &#8220;built-in&#8221; means &#8220;written in
C&#8221;.)</dd></dl>

<dl class="data">
<dt id="types.ModuleType">
<tt class="descclassname">types.</tt><tt class="descname">ModuleType</tt><a class="headerlink" href="#types.ModuleType" title="Permalink to this definition">¶</a></dt>
<dd>The type of modules.</dd></dl>

<dl class="data">
<dt id="types.FileType">
<tt class="descclassname">types.</tt><tt class="descname">FileType</tt><a class="headerlink" href="#types.FileType" title="Permalink to this definition">¶</a></dt>
<dd>The type of open file objects such as <tt class="docutils literal"><span class="pre">sys.stdout</span></tt>; alias of the built-in
<a title="file" class="reference external" href="functions.html#file"><tt class="xref docutils literal"><span class="pre">file</span></tt></a>.</dd></dl>

<dl class="data">
<dt id="types.XRangeType">
<tt class="descclassname">types.</tt><tt class="descname">XRangeType</tt><a class="headerlink" href="#types.XRangeType" title="Permalink to this definition">¶</a></dt>
<dd><p id="index-721">The type of range objects returned by <a title="xrange" class="reference external" href="functions.html#xrange"><tt class="xref docutils literal"><span class="pre">xrange()</span></tt></a>; alias of the built-in
<a title="xrange" class="reference external" href="functions.html#xrange"><tt class="xref docutils literal"><span class="pre">xrange</span></tt></a>.</p>
</dd></dl>

<dl class="data">
<dt id="types.SliceType">
<tt class="descclassname">types.</tt><tt class="descname">SliceType</tt><a class="headerlink" href="#types.SliceType" title="Permalink to this definition">¶</a></dt>
<dd><p id="index-722">The type of objects returned by <a title="slice" class="reference external" href="functions.html#slice"><tt class="xref docutils literal"><span class="pre">slice()</span></tt></a>; alias of the built-in
<a title="slice" class="reference external" href="functions.html#slice"><tt class="xref docutils literal"><span class="pre">slice</span></tt></a>.</p>
</dd></dl>

<dl class="data">
<dt id="types.EllipsisType">
<tt class="descclassname">types.</tt><tt class="descname">EllipsisType</tt><a class="headerlink" href="#types.EllipsisType" title="Permalink to this definition">¶</a></dt>
<dd>The type of <tt class="docutils literal"><span class="pre">Ellipsis</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.TracebackType">
<tt class="descclassname">types.</tt><tt class="descname">TracebackType</tt><a class="headerlink" href="#types.TracebackType" title="Permalink to this definition">¶</a></dt>
<dd>The type of traceback objects such as found in <tt class="docutils literal"><span class="pre">sys.exc_traceback</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.FrameType">
<tt class="descclassname">types.</tt><tt class="descname">FrameType</tt><a class="headerlink" href="#types.FrameType" title="Permalink to this definition">¶</a></dt>
<dd>The type of frame objects such as found in <tt class="docutils literal"><span class="pre">tb.tb_frame</span></tt> if <tt class="docutils literal"><span class="pre">tb</span></tt> is a
traceback object.</dd></dl>

<dl class="data">
<dt id="types.BufferType">
<tt class="descclassname">types.</tt><tt class="descname">BufferType</tt><a class="headerlink" href="#types.BufferType" title="Permalink to this definition">¶</a></dt>
<dd><p id="index-723">The type of buffer objects created by the <a title="buffer" class="reference external" href="functions.html#buffer"><tt class="xref docutils literal"><span class="pre">buffer()</span></tt></a> function.</p>
</dd></dl>

<dl class="data">
<dt id="types.DictProxyType">
<tt class="descclassname">types.</tt><tt class="descname">DictProxyType</tt><a class="headerlink" href="#types.DictProxyType" title="Permalink to this definition">¶</a></dt>
<dd>The type of dict proxies, such as <tt class="docutils literal"><span class="pre">TypeType.__dict__</span></tt>.</dd></dl>

<dl class="data">
<dt id="types.NotImplementedType">
<tt class="descclassname">types.</tt><tt class="descname">NotImplementedType</tt><a class="headerlink" href="#types.NotImplementedType" title="Permalink to this definition">¶</a></dt>
<dd>The type of <tt class="docutils literal"><span class="pre">NotImplemented</span></tt></dd></dl>

<dl class="data">
<dt id="types.GetSetDescriptorType">
<tt class="descclassname">types.</tt><tt class="descname">GetSetDescriptorType</tt><a class="headerlink" href="#types.GetSetDescriptorType" title="Permalink to this definition">¶</a></dt>
<dd><p>The type of objects defined in extension modules with <tt class="docutils literal"><span class="pre">PyGetSetDef</span></tt>, such
as <tt class="docutils literal"><span class="pre">FrameType.f_locals</span></tt> or <tt class="docutils literal"><span class="pre">array.array.typecode</span></tt>.  This type is used as
descriptor for object attributes; it has the same purpose as the
<a title="property" class="reference external" href="functions.html#property"><tt class="xref docutils literal"><span class="pre">property</span></tt></a> type, but for classes defined in extension modules.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.5.</span></p>
</dd></dl>

<dl class="data">
<dt id="types.MemberDescriptorType">
<tt class="descclassname">types.</tt><tt class="descname">MemberDescriptorType</tt><a class="headerlink" href="#types.MemberDescriptorType" title="Permalink to this definition">¶</a></dt>
<dd><p>The type of objects defined in extension modules with <tt class="docutils literal"><span class="pre">PyMemberDef</span></tt>, such
as <tt class="docutils literal"><span class="pre">datetime.timedelta.days</span></tt>.  This type is used as descriptor for simple C
data members which use standard conversion functions; it has the same purpose
as the <a title="property" class="reference external" href="functions.html#property"><tt class="xref docutils literal"><span class="pre">property</span></tt></a> type, but for classes defined in extension modules.</p>
<div class="impl-detail compound">
<p><strong>CPython implementation detail:</strong> In other implementations of Python, this type may be identical to
<tt class="docutils literal"><span class="pre">GetSetDescriptorType</span></tt>.</p>
</div>
<p class="versionadded">
<span class="versionmodified">New in version 2.5.</span></p>
</dd></dl>

<dl class="data">
<dt id="types.StringTypes">
<tt class="descclassname">types.</tt><tt class="descname">StringTypes</tt><a class="headerlink" href="#types.StringTypes" title="Permalink to this definition">¶</a></dt>
<dd><p>A sequence containing <tt class="docutils literal"><span class="pre">StringType</span></tt> and <tt class="docutils literal"><span class="pre">UnicodeType</span></tt> used to facilitate
easier checking for any string object.  Using this is more portable than using a
sequence of the two string types constructed elsewhere since it only contains
<tt class="docutils literal"><span class="pre">UnicodeType</span></tt> if it has been built in the running version of Python.  For
example: <tt class="docutils literal"><span class="pre">isinstance(s,</span> <span class="pre">types.StringTypes)</span></tt>.</p>
<p class="versionadded">
<span class="versionmodified">New in version 2.2.</span></p>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Previous topic</h4>
            <p class="topless"><a href="userdict.html"
                                  title="previous chapter">8.12. <tt class="docutils literal"><span class="pre">UserDict</span></tt> &#8212; Class wrapper for dictionary objects</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="new.html"
                                  title="next chapter">8.16. <tt class="docutils literal docutils literal docutils literal"><span class="pre">new</span></tt> &#8212; Creation of runtime internal objects</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/types.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" size="18" />
                <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="../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="new.html" title="8.16. new — Creation of runtime internal objects"
             >next</a> |</li>
        <li class="right" >
          <a href="userdict.html" title="8.12. UserDict — Class wrapper for dictionary objects"
             >previous</a> |</li>
        <li><img src="../_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="../index.html">Python v2.7.1 documentation</a> &raquo;</li>

          <li><a href="index.html" >The Python Standard Library</a> &raquo;</li>
          <li><a href="datatypes.html" >8. Data Types</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
    &copy; <a href="../copyright.html">Copyright</a> 1990-2010, 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 Nov 27, 2010.
    <a href="../bugs.html">Found a bug</a>?
    <br />
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.7.
    </div>

  </body>
</html>