Extending Python: rewriting a single method in C
fredrik at pythonware.com
Tue Mar 13 20:57:00 CET 2001
Jacek Generowicz wrote:
> (Would it be fair to say that the documentaion is, on the whole, less
> that satisfactory ?)
are you sure you read the C API docs before posting?
explains how PyObject's work.
explains how to deal with objects of a known type.
explains the abstract object interface, including the functions
PyObject* PyObject_GetAttrString (PyObject *o, char *attr_name)
Return value: New reference.
Retrieve an attribute named attr_name from object o. Returns
the attribute value on success, or NULL on failure. This is the
equivalent of the Python expression "o.attr_name".
More information about the Python-list