1
if the object provides sequence protocol, and
0
otherwise. This function always succeeds.
-1
on failure. For objects that do not provide sequence
protocol, this is equivalent to the Python expression
"len(o)".
-1
on failure. This is the equivalent of the Python
statement "o[i] = v".
-1
on failure. This is the equivalent of the Python statement
"del o[i]".
-1
on failure. This is the equivalent of
the Python statement "del o[i1:i2]".
o[key] ==
value
. On failure, return -1
. This is equivalent to
the Python expression "o.count(value)".
1
, otherwise return 0
.
On error, return -1
. This is equivalent to the Python
expression "value in o".
o[i] ==
value
. On error, return -1
. This is equivalent to
the Python expression "o.index(value)".
See About this document... for information on suggesting changes.