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