1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
<title>Abstract Objects Layer — Python 3.5.2 documentation</title>
11
<link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
12
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
<script type="text/javascript">
15
var DOCUMENTATION_OPTIONS = {
18
COLLAPSE_INDEX: false,
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" />
38
<script type="text/javascript" src="../_static/copybutton.js"></script>
39
<script type="text/javascript" src="../_static/version_switch.js"></script>
45
<body role="document">
46
<div class="related" role="navigation" aria-label="related navigation">
49
<li class="right" style="margin-right: 10px">
50
<a href="../genindex.html" title="General Index"
51
accesskey="I">index</a></li>
53
<a href="../py-modindex.html" title="Python Module Index"
56
<a href="object.html" title="Object Protocol"
57
accesskey="N">next</a> |</li>
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> »</li>
65
<span class="version_switcher_placeholder">3.5.2</span>
66
<a href="../index.html">Documentation </a> »
69
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API Reference Manual</a> »</li>
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" />
81
<script type="text/javascript">$('.inline-search').show(0);</script>
88
<div class="document">
89
<div class="documentwrapper">
90
<div class="bodywrapper">
91
<div class="body" role="main">
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">
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>
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>
124
<li class="toctree-l2"><a class="reference internal" href="buffer.html#buffer-related-functions">Buffer-related functions</a></li>
127
<li class="toctree-l1"><a class="reference internal" href="objbuffer.html">Old Buffer Protocol</a></li>
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>
142
<p class="topless"><a href="object.html"
143
title="next chapter">Object Protocol</a></p>
144
<div role="note" aria-label="source link">
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>
154
<div class="clearer"></div>
156
<div class="related" role="navigation" aria-label="related navigation">
159
<li class="right" style="margin-right: 10px">
160
<a href="../genindex.html" title="General Index"
163
<a href="../py-modindex.html" title="Python Module Index"
166
<a href="object.html" title="Object Protocol"
169
<a href="codec.html" title="Codec registry and support functions"
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> »</li>
175
<span class="version_switcher_placeholder">3.5.2</span>
176
<a href="../index.html">Documentation </a> »
179
<li class="nav-item nav-item-1"><a href="index.html" >Python/C API Reference Manual</a> »</li>
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" />
191
<script type="text/javascript">$('.inline-search').show(0);</script>
198
© <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
200
The Python Software Foundation is a non-profit corporation.
201
<a href="https://www.python.org/psf/donations/">Please donate.</a>
203
Last updated on Oct 27, 2016.
204
<a href="../bugs.html">Found a bug</a>?
206
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'