-1 on error.
The flags argument is used to enable certain printing options. The
only option currently supported is Py_PRINT_RAW; if given,
the str() of the object is written instead of the
repr().
1 if o has the attribute attr_name, and
0 otherwise. This is equivalent to the Python expression
"hasattr(o, attr_name)".
This function always succeeds.
1 if o has the attribute attr_name, and
0 otherwise. This is equivalent to the Python expression
"hasattr(o, attr_name)".
This function always succeeds.
-1 on failure. This is
the equivalent of the Python statement "o.attr_name =
v".
-1 on failure. This is
the equivalent of the Python statement "o.attr_name =
v".
-1 on failure. This is the equivalent of the Python
statement: "del o.attr_name".
-1 on failure. This is the equivalent of the Python
statement "del o.attr_name".
-1 on failure. This is the equivalent of the Python
statement "result = cmp(o1, o2)".
1 if the
object is callable and 0 otherwise.
This function always succeeds.
-1. This is the equivalent of the Python
expression "hash(o)".
1 if the object o is considered to be true, and
0 otherwise. This is equivalent to the Python expression
"not not o".
This function always succeeds.
-1 is returned. This is the equivalent
to the Python expression "len(o)".
-1 on failure. This is the equivalent
of the Python statement "o[key] = v".
-1 on
failure. This is the equivalent of the Python statement "del
o[key]".
-1 on failure.