~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-3.5.2-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 3.5.2 documentation</title>
 
10
    
 
11
    <link rel="stylesheet" href="../_static/pydoctheme.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:     '3.5.2',
 
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 3.5.2 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 3.5.2 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
    
 
38
    <script type="text/javascript" src="../_static/copybutton.js"></script>
 
39
    <script type="text/javascript" src="../_static/version_switch.js"></script>
 
40
    
 
41
    
 
42
 
 
43
 
 
44
  </head>
 
45
  <body role="document">  
 
46
    <div class="related" role="navigation" aria-label="related navigation">
 
47
      <h3>Navigation</h3>
 
48
      <ul>
 
49
        <li class="right" style="margin-right: 10px">
 
50
          <a href="../genindex.html" title="General Index"
 
51
             accesskey="I">index</a></li>
 
52
        <li class="right" >
 
53
          <a href="../py-modindex.html" title="Python Module Index"
 
54
             >modules</a> |</li>
 
55
        <li class="right" >
 
56
          <a href="object.html" title="Object Protocol"
 
57
             accesskey="N">next</a> |</li>
 
58
        <li class="right" >
 
59
          <a href="codec.html" title="Codec registry and support functions"
 
60
             accesskey="P">previous</a> |</li>
 
61
        <li><img src="../_static/py.png" alt=""
 
62
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
63
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
64
        <li>
 
65
          <span class="version_switcher_placeholder">3.5.2</span>
 
66
          <a href="../index.html">Documentation </a> &raquo;
 
67
        </li>
 
68
 
 
69
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API Reference Manual</a> &raquo;</li>
 
70
    <li class="right">
 
71
        
 
72
 
 
73
    <div class="inline-search" style="display: none" role="search">
 
74
        <form class="inline-search" action="../search.html" method="get">
 
75
          <input placeholder="Quick search" type="text" name="q" />
 
76
          <input type="submit" value="Go" />
 
77
          <input type="hidden" name="check_keywords" value="yes" />
 
78
          <input type="hidden" name="area" value="default" />
 
79
        </form>
 
80
    </div>
 
81
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
82
         |
 
83
    </li>
 
84
 
 
85
      </ul>
 
86
    </div>    
 
87
 
 
88
    <div class="document">
 
89
      <div class="documentwrapper">
 
90
        <div class="bodywrapper">
 
91
          <div class="body" role="main">
 
92
            
 
93
  <div class="section" id="abstract-objects-layer">
 
94
<span id="abstract"></span><h1>Abstract Objects Layer<a class="headerlink" href="#abstract-objects-layer" title="Permalink to this headline">¶</a></h1>
 
95
<p>The functions in this chapter interact with Python objects regardless of their
 
96
type, or with wide classes of object types (e.g. all numerical types, or all
 
97
sequence types).  When used on object types for which they do not apply, they
 
98
will raise a Python exception.</p>
 
99
<p>It is not possible to use these functions on objects that are not properly
 
100
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>,
 
101
but whose items have not been set to some non-<code class="docutils literal"><span class="pre">NULL</span></code> value yet.</p>
 
102
<div class="toctree-wrapper compound">
 
103
<ul>
 
104
<li class="toctree-l1"><a class="reference internal" href="object.html">Object Protocol</a></li>
 
105
<li class="toctree-l1"><a class="reference internal" href="number.html">Number Protocol</a></li>
 
106
<li class="toctree-l1"><a class="reference internal" href="sequence.html">Sequence Protocol</a></li>
 
107
<li class="toctree-l1"><a class="reference internal" href="mapping.html">Mapping Protocol</a></li>
 
108
<li class="toctree-l1"><a class="reference internal" href="iter.html">Iterator Protocol</a></li>
 
109
<li class="toctree-l1"><a class="reference internal" href="buffer.html">Buffer Protocol</a><ul>
 
110
<li class="toctree-l2"><a class="reference internal" href="buffer.html#buffer-structure">Buffer structure</a></li>
 
111
<li class="toctree-l2"><a class="reference internal" href="buffer.html#buffer-request-types">Buffer request types</a><ul>
 
112
<li class="toctree-l3"><a class="reference internal" href="buffer.html#request-independent-fields">request-independent fields</a></li>
 
113
<li class="toctree-l3"><a class="reference internal" href="buffer.html#readonly-format">readonly, format</a></li>
 
114
<li class="toctree-l3"><a class="reference internal" href="buffer.html#shape-strides-suboffsets">shape, strides, suboffsets</a></li>
 
115
<li class="toctree-l3"><a class="reference internal" href="buffer.html#contiguity-requests">contiguity requests</a></li>
 
116
<li class="toctree-l3"><a class="reference internal" href="buffer.html#compound-requests">compound requests</a></li>
 
117
</ul>
 
118
</li>
 
119
<li class="toctree-l2"><a class="reference internal" href="buffer.html#complex-arrays">Complex arrays</a><ul>
 
120
<li class="toctree-l3"><a class="reference internal" href="buffer.html#numpy-style-shape-and-strides">NumPy-style: shape and strides</a></li>
 
121
<li class="toctree-l3"><a class="reference internal" href="buffer.html#pil-style-shape-strides-and-suboffsets">PIL-style: shape, strides and suboffsets</a></li>
 
122
</ul>
 
123
</li>
 
124
<li class="toctree-l2"><a class="reference internal" href="buffer.html#buffer-related-functions">Buffer-related functions</a></li>
 
125
</ul>
 
126
</li>
 
127
<li class="toctree-l1"><a class="reference internal" href="objbuffer.html">Old Buffer Protocol</a></li>
 
128
</ul>
 
129
</div>
 
130
</div>
 
131
 
 
132
 
 
133
          </div>
 
134
        </div>
 
135
      </div>
 
136
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
 
137
        <div class="sphinxsidebarwrapper">
 
138
  <h4>Previous topic</h4>
 
139
  <p class="topless"><a href="codec.html"
 
140
                        title="previous chapter">Codec registry and support functions</a></p>
 
141
  <h4>Next topic</h4>
 
142
  <p class="topless"><a href="object.html"
 
143
                        title="next chapter">Object Protocol</a></p>
 
144
  <div role="note" aria-label="source link">
 
145
    <h3>This Page</h3>
 
146
    <ul class="this-page-menu">
 
147
      <li><a href="../bugs.html">Report a Bug</a></li>
 
148
      <li><a href="../_sources/c-api/abstract.txt"
 
149
            rel="nofollow">Show Source</a></li>
 
150
    </ul>
 
151
  </div>
 
152
        </div>
 
153
      </div>
 
154
      <div class="clearer"></div>
 
155
    </div>  
 
156
    <div class="related" role="navigation" aria-label="related navigation">
 
157
      <h3>Navigation</h3>
 
158
      <ul>
 
159
        <li class="right" style="margin-right: 10px">
 
160
          <a href="../genindex.html" title="General Index"
 
161
             >index</a></li>
 
162
        <li class="right" >
 
163
          <a href="../py-modindex.html" title="Python Module Index"
 
164
             >modules</a> |</li>
 
165
        <li class="right" >
 
166
          <a href="object.html" title="Object Protocol"
 
167
             >next</a> |</li>
 
168
        <li class="right" >
 
169
          <a href="codec.html" title="Codec registry and support functions"
 
170
             >previous</a> |</li>
 
171
        <li><img src="../_static/py.png" alt=""
 
172
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
173
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
174
        <li>
 
175
          <span class="version_switcher_placeholder">3.5.2</span>
 
176
          <a href="../index.html">Documentation </a> &raquo;
 
177
        </li>
 
178
 
 
179
          <li class="nav-item nav-item-1"><a href="index.html" >Python/C API Reference Manual</a> &raquo;</li>
 
180
    <li class="right">
 
181
        
 
182
 
 
183
    <div class="inline-search" style="display: none" role="search">
 
184
        <form class="inline-search" action="../search.html" method="get">
 
185
          <input placeholder="Quick search" type="text" name="q" />
 
186
          <input type="submit" value="Go" />
 
187
          <input type="hidden" name="check_keywords" value="yes" />
 
188
          <input type="hidden" name="area" value="default" />
 
189
        </form>
 
190
    </div>
 
191
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
192
         |
 
193
    </li>
 
194
 
 
195
      </ul>
 
196
    </div>  
 
197
    <div class="footer">
 
198
    &copy; <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
 
199
    <br />
 
200
    The Python Software Foundation is a non-profit corporation.
 
201
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
 
202
    <br />
 
203
    Last updated on Oct 27, 2016.
 
204
    <a href="../bugs.html">Found a bug</a>?
 
205
    <br />
 
206
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
 
207
    </div>
 
208
 
 
209
  </body>
 
210
</html>
 
 
b'\\ No newline at end of file'