PyObject *o) |
1
if the object provides mapping protocol, and
0
otherwise. This function always succeeds.
PyObject *o) |
-1
on failure. For objects that do not provide mapping
protocol, this is equivalent to the Python expression
"len(o)".
PyObject *o, char *key) |
-1
on failure. This is equivalent to the Python
statement "del o[key]".
PyObject *o, PyObject *key) |
-1
on failure. This is equivalent to the Python
statement "del o[key]".
PyObject *o, char *key) |
1
if the mapping object has the key
key and 0
otherwise. This is equivalent to the Python
expression "o.has_key(key)". This function always
succeeds.
PyObject *o, PyObject *key) |
1
if the mapping object has the key key and
0
otherwise. This is equivalent to the Python expression
"o.has_key(key)". This function always succeeds.
PyObject *o) |
PyObject *o) |
PyObject *o) |
PyObject *o, char *key) |
PyObject *o, char *key, PyObject *v) |
-1
on failure. This is the equivalent of the Python
statement "o[key] = v".
See About this document... for information on suggesting changes.