| [ Web Proxy ] |
| Viewing: https://docs.python.org/2.3/api/mapping.html | [Back] [Original] |
| int PyMapping_Check( | PyObject *o) |
1 if the object provides mapping protocol, and
0 otherwise. This function always succeeds.
| int PyMapping_Length( | PyObject *o) |
-1 on failure. For objects that do not provide mapping
protocol, this is equivalent to the Python expression
"len(o)".
| int PyMapping_DelItemString( | PyObject *o, char *key) |
-1 on failure. This is equivalent to the Python
statement "del o[key]".
| int PyMapping_DelItem( | PyObject *o, PyObject *key) |
-1 on failure. This is equivalent to the Python
statement "del o[key]".
| int PyMapping_HasKeyString( | 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.
| int PyMapping_HasKey( | 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* PyMapping_Keys( | PyObject *o) |
| PyObject* PyMapping_Values( | PyObject *o) |
| PyObject* PyMapping_Items( | PyObject *o) |
| PyObject* PyMapping_GetItemString( | PyObject *o, char *key) |
| int PyMapping_SetItemString( | 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.
| Web Proxy Viewer | New URL | Original Page |