blob: ad538811127dfb2e8b6871b38c5bb705c49a04fc [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001.. highlightlang:: c
2
Georg Brandl116aa622007-08-15 14:28:22 +00003.. _abstract:
4
5**********************
6Abstract Objects Layer
7**********************
8
9The functions in this chapter interact with Python objects regardless of their
10type, or with wide classes of object types (e.g. all numerical types, or all
11sequence types). When used on object types for which they do not apply, they
12will raise a Python exception.
13
14It is not possible to use these functions on objects that are not properly
Benjamin Peterson3cabbeb2010-08-21 21:23:28 +000015initialized, such as a list object that has been created by :c:func:`PyList_New`,
Georg Brandl116aa622007-08-15 14:28:22 +000016but whose items have not been set to some non-\ ``NULL`` value yet.
17
Georg Brandl54a3faa2008-01-20 09:30:57 +000018.. toctree::
Georg Brandl116aa622007-08-15 14:28:22 +000019
Georg Brandl54a3faa2008-01-20 09:30:57 +000020 object.rst
21 number.rst
22 sequence.rst
23 mapping.rst
24 iter.rst
Antoine Pitrouf7ba2fa2010-09-28 23:39:41 +000025 buffer.rst
Georg Brandl54a3faa2008-01-20 09:30:57 +000026 objbuffer.rst