~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-2.7.11-docs-html/c-api/abstract.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
 
4
 
 
5
 
<html xmlns="http://www.w3.org/1999/xhtml">
6
 
  <head>
7
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
 
    
9
 
    <title>Abstract Objects Layer &mdash; Python 2.7.11 documentation</title>
10
 
    
11
 
    <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
12
 
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
 
    
14
 
    <script type="text/javascript">
15
 
      var DOCUMENTATION_OPTIONS = {
16
 
        URL_ROOT:    '../',
17
 
        VERSION:     '2.7.11',
18
 
        COLLAPSE_INDEX: false,
19
 
        FILE_SUFFIX: '.html',
20
 
        HAS_SOURCE:  true
21
 
      };
22
 
    </script>
23
 
    <script type="text/javascript" src="../_static/jquery.js"></script>
24
 
    <script type="text/javascript" src="../_static/underscore.js"></script>
25
 
    <script type="text/javascript" src="../_static/doctools.js"></script>
26
 
    <script type="text/javascript" src="../_static/sidebar.js"></script>
27
 
    <link rel="search" type="application/opensearchdescription+xml"
28
 
          title="Search within Python 2.7.11 documentation"
29
 
          href="../_static/opensearch.xml"/>
30
 
    <link rel="author" title="About these documents" href="../about.html" />
31
 
    <link rel="copyright" title="Copyright" href="../copyright.html" />
32
 
    <link rel="top" title="Python 2.7.11 documentation" href="../contents.html" />
33
 
    <link rel="up" title="Python/C API Reference Manual" href="index.html" />
34
 
    <link rel="next" title="Object Protocol" href="object.html" />
35
 
    <link rel="prev" title="Codec registry and support functions" href="codec.html" />
36
 
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
37
 
    <script type="text/javascript" src="../_static/copybutton.js"></script>
38
 
    <script type="text/javascript" src="../_static/version_switch.js"></script>
39
 
 
40
 
    
41
 
 
42
 
  </head>
43
 
  <body role="document">  
44
 
    <div class="related" role="navigation" aria-label="related navigation">
45
 
      <h3>Navigation</h3>
46
 
      <ul>
47
 
        <li class="right" style="margin-right: 10px">
48
 
          <a href="../genindex.html" title="General Index"
49
 
             accesskey="I">index</a></li>
50
 
        <li class="right" >
51
 
          <a href="../py-modindex.html" title="Python Module Index"
52
 
             >modules</a> |</li>
53
 
        <li class="right" >
54
 
          <a href="object.html" title="Object Protocol"
55
 
             accesskey="N">next</a> |</li>
56
 
        <li class="right" >
57
 
          <a href="codec.html" title="Codec registry and support functions"
58
 
             accesskey="P">previous</a> |</li>
59
 
        <li><img src="../_static/py.png" alt=""
60
 
                 style="vertical-align: middle; margin-top: -1px"/></li>
61
 
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
62
 
        <li>
63
 
          <span class="version_switcher_placeholder">2.7.11</span>
64
 
          <a href="../index.html">Documentation</a> &raquo;
65
 
        </li>
66
 
 
67
 
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API Reference Manual</a> &raquo;</li> 
68
 
      </ul>
69
 
    </div>    
70
 
 
71
 
    <div class="document">
72
 
      <div class="documentwrapper">
73
 
        <div class="bodywrapper">
74
 
          <div class="body" role="main">
75
 
            
76
 
  <div class="section" id="abstract-objects-layer">
77
 
<span id="abstract"></span><h1>Abstract Objects Layer<a class="headerlink" href="#abstract-objects-layer" title="Permalink to this headline">¶</a></h1>
78
 
<p>The functions in this chapter interact with Python objects regardless of their
79
 
type, or with wide classes of object types (e.g. all numerical types, or all
80
 
sequence types).  When used on object types for which they do not apply, they
81
 
will raise a Python exception.</p>
82
 
<p>It is not possible to use these functions on objects that are not properly
83
 
initialized, such as a list object that has been created by <a class="reference internal" href="list.html#c.PyList_New" title="PyList_New"><code class="xref c c-func docutils literal"><span class="pre">PyList_New()</span></code></a>,
84
 
but whose items have not been set to some non-<code class="docutils literal"><span class="pre">NULL</span></code> value yet.</p>
85
 
<div class="toctree-wrapper compound">
86
 
<ul>
87
 
<li class="toctree-l1"><a class="reference internal" href="object.html">Object Protocol</a></li>
88
 
<li class="toctree-l1"><a class="reference internal" href="number.html">Number Protocol</a></li>
89
 
<li class="toctree-l1"><a class="reference internal" href="sequence.html">Sequence Protocol</a></li>
90
 
<li class="toctree-l1"><a class="reference internal" href="mapping.html">Mapping Protocol</a></li>
91
 
<li class="toctree-l1"><a class="reference internal" href="iter.html">Iterator Protocol</a></li>
92
 
<li class="toctree-l1"><a class="reference internal" href="objbuffer.html">Old Buffer Protocol</a></li>
93
 
</ul>
94
 
</div>
95
 
</div>
96
 
 
97
 
 
98
 
          </div>
99
 
        </div>
100
 
      </div>
101
 
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
102
 
        <div class="sphinxsidebarwrapper">
103
 
  <h4>Previous topic</h4>
104
 
  <p class="topless"><a href="codec.html"
105
 
                        title="previous chapter">Codec registry and support functions</a></p>
106
 
  <h4>Next topic</h4>
107
 
  <p class="topless"><a href="object.html"
108
 
                        title="next chapter">Object Protocol</a></p>
109
 
<h3>This Page</h3>
110
 
<ul class="this-page-menu">
111
 
  <li><a href="../bugs.html">Report a Bug</a></li>
112
 
  <li><a href="../_sources/c-api/abstract.txt"
113
 
         rel="nofollow">Show Source</a></li>
114
 
</ul>
115
 
 
116
 
<div id="searchbox" style="display: none" role="search">
117
 
  <h3>Quick search</h3>
118
 
    <form class="search" action="../search.html" method="get">
119
 
      <input type="text" name="q" />
120
 
      <input type="submit" value="Go" />
121
 
      <input type="hidden" name="check_keywords" value="yes" />
122
 
      <input type="hidden" name="area" value="default" />
123
 
    </form>
124
 
    <p class="searchtip" style="font-size: 90%">
125
 
    Enter search terms or a module, class or function name.
126
 
    </p>
127
 
</div>
128
 
<script type="text/javascript">$('#searchbox').show(0);</script>
129
 
        </div>
130
 
      </div>
131
 
      <div class="clearer"></div>
132
 
    </div>  
133
 
    <div class="related" role="navigation" aria-label="related navigation">
134
 
      <h3>Navigation</h3>
135
 
      <ul>
136
 
        <li class="right" style="margin-right: 10px">
137
 
          <a href="../genindex.html" title="General Index"
138
 
             >index</a></li>
139
 
        <li class="right" >
140
 
          <a href="../py-modindex.html" title="Python Module Index"
141
 
             >modules</a> |</li>
142
 
        <li class="right" >
143
 
          <a href="object.html" title="Object Protocol"
144
 
             >next</a> |</li>
145
 
        <li class="right" >
146
 
          <a href="codec.html" title="Codec registry and support functions"
147
 
             >previous</a> |</li>
148
 
        <li><img src="../_static/py.png" alt=""
149
 
                 style="vertical-align: middle; margin-top: -1px"/></li>
150
 
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
151
 
        <li>
152
 
          <span class="version_switcher_placeholder">2.7.11</span>
153
 
          <a href="../index.html">Documentation</a> &raquo;
154
 
        </li>
155
 
 
156
 
          <li class="nav-item nav-item-1"><a href="index.html" >Python/C API Reference Manual</a> &raquo;</li> 
157
 
      </ul>
158
 
    </div>  
159
 
    <div class="footer">
160
 
    &copy; <a href="../copyright.html">Copyright</a> 1990-2016, Python Software Foundation.
161
 
    <br />
162
 
    The Python Software Foundation is a non-profit corporation.
163
 
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
164
 
    <br />
165
 
    Last updated on Jan 23, 2016.
166
 
    <a href="../bugs.html">Found a bug</a>?
167
 
    <br />
168
 
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
169
 
    </div>
170
 
 
171
 
  </body>
172
 
</html>
 
 
b'\\ No newline at end of file'