| [ Web Proxy ] |
| Viewing: https://docs.python.org/2.3/api/sequence.html | [Back] [Original] |
| int PySequence_Check( | PyObject *o) |
1 if the object provides sequence protocol, and
0 otherwise. This function always succeeds.
| int PySequence_Size( | PyObject *o) |
-1 on failure. For objects that do not provide sequence
protocol, this is equivalent to the Python expression
"len(o)".
| int PySequence_Length( | PyObject *o) |
| PyObject* PySequence_Concat( | PyObject *o1, PyObject *o2) |
| PyObject* PySequence_Repeat( | PyObject *o, int count) |
| PyObject* PySequence_InPlaceConcat( | PyObject *o1, PyObject *o2) |
| PyObject* PySequence_InPlaceRepeat( | PyObject *o, int count) |
| PyObject* PySequence_GetItem( | PyObject *o, int i) |
| PyObject* PySequence_GetSlice( | PyObject *o, int i1, int i2) |
| int PySequence_SetItem( | 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.
| int PySequence_DelItem( | PyObject *o, int i) |
-1
on failure. This is the equivalent of the Python statement
"del o[i]".
| int PySequence_SetSlice( | PyObject *o, int i1, int i2, PyObject *v) |
| int PySequence_DelSlice( | PyObject *o, int i1, int i2) |
-1 on failure. This is the equivalent of
the Python statement "del o[i1:i2]".
| PyObject* PySequence_Tuple( | PyObject *o) |
| int PySequence_Count( | PyObject *o, PyObject *value) |
o[key] ==
value. On failure, return -1. This is equivalent to
the Python expression "o.count(value)".
| int PySequence_Contains( | PyObject *o, PyObject *value) |
1, otherwise return 0.
On error, return -1. This is equivalent to the Python
expression "value in o".
| int PySequence_Index( | PyObject *o, PyObject *value) |
o[i] ==
value. On error, return -1. This is equivalent to
the Python expression "o.index(value)".
| PyObject* PySequence_List( | PyObject *o) |
| PyObject* PySequence_Tuple( | PyObject *o) |
| PyObject* PySequence_Fast( | PyObject *o, const char *m) |
| PyObject* PySequence_Fast_GET_ITEM( | PyObject *o, int i) |
| PyObject* PySequence_ITEM( | PyObject *o, int i) |
| int PySequence_Fast_GET_SIZE( | PyObject *o) |
See About this document... for information on suggesting changes.
| Web Proxy Viewer | New URL | Original Page |