Abstract Objects Layer

The functions in this chapter interact with Python objects regardless of theirtype, or with wide classes of object types (e.g. all numerical types, or allsequence types). When used on object types for which they do not apply, theywill raise a Python exception.

It is not possible to use these functions on objects that are not properlyinitialized, such as a list object that has been created byPyList_New(),but whose items have not been set to some non-NULL value yet.