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 2.7.11 documentation</title>
11
<link rel="stylesheet" href="../_static/classic.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 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>
43
<body role="document">
44
<div class="related" role="navigation" aria-label="related navigation">
47
<li class="right" style="margin-right: 10px">
48
<a href="../genindex.html" title="General Index"
49
accesskey="I">index</a></li>
51
<a href="../py-modindex.html" title="Python Module Index"
54
<a href="object.html" title="Object Protocol"
55
accesskey="N">next</a> |</li>
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> »</li>
63
<span class="version_switcher_placeholder">2.7.11</span>
64
<a href="../index.html">Documentation</a> »
67
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API Reference Manual</a> »</li>
71
<div class="document">
72
<div class="documentwrapper">
73
<div class="bodywrapper">
74
<div class="body" role="main">
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">
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>
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>
107
<p class="topless"><a href="object.html"
108
title="next chapter">Object Protocol</a></p>
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>
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" />
124
<p class="searchtip" style="font-size: 90%">
125
Enter search terms or a module, class or function name.
128
<script type="text/javascript">$('#searchbox').show(0);</script>
131
<div class="clearer"></div>
133
<div class="related" role="navigation" aria-label="related navigation">
136
<li class="right" style="margin-right: 10px">
137
<a href="../genindex.html" title="General Index"
140
<a href="../py-modindex.html" title="Python Module Index"
143
<a href="object.html" title="Object Protocol"
146
<a href="codec.html" title="Codec registry and support functions"
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> »</li>
152
<span class="version_switcher_placeholder">2.7.11</span>
153
<a href="../index.html">Documentation</a> »
156
<li class="nav-item nav-item-1"><a href="index.html" >Python/C API Reference Manual</a> »</li>
160
© <a href="../copyright.html">Copyright</a> 1990-2016, Python Software Foundation.
162
The Python Software Foundation is a non-profit corporation.
163
<a href="https://www.python.org/psf/donations/">Please donate.</a>
165
Last updated on Jan 23, 2016.
166
<a href="../bugs.html">Found a bug</a>?
168
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'