o
on success, and -1 on
failure. For objects that do not provide sequence protocol,
this is equivalent to the Python expression: len(o)
.
key
from the object o
.
Return -1 on failure. This is equivalent to
the Python statement: del o[key]
.
key
from the object o
.
Return -1 on failure. This is equivalent to
the Python statement: del o[key]
.
key
and 0 otherwise. This is equivalent to the Python expression:
o.has_key(key)
.
This function always succeeds.
key
and 0 otherwise. This is equivalent to the Python expression:
o.has_key(key)
.
This function always succeeds.
o
. On
failure, return NULL
. This is equivalent to the Python
expression: o.keys()
.
o
. On
failure, return NULL
. This is equivalent to the Python
expression: o.values()
.
o
, where
each item is a tuple containing a key-value pair. On
failure, return NULL
. This is equivalent to the Python
expression: o.items()
.
o
empty. Returns 1 on success and 0 on failure.
This is equivalent to the Python statement:
for key in o.keys(): del o[key]
o
corresponding to the object key
or NULL
on failure. This is the equivalent of the Python expression:
o[key]
.
key
to the value v
in object o
. Returns
-1 on failure. This is the equivalent of the Python
statement: o[key]=v
.