| [ Web Proxy ] |
| Viewing: https://docs.python.org/2.3/api/tupleObjects.html | [Back] [Original] |
types.TupleType in the Python
layer..
| int PyTuple_Check( | PyObject *p) |
| int PyTuple_CheckExact( | PyObject *p) |
| PyObject* PyTuple_New( | int len) |
| int PyTuple_Size( | PyObject *p) |
| int PyTuple_GET_SIZE( | PyObject *p) |
| PyObject* PyTuple_GetItem( | PyObject *p, int pos) |
| PyObject* PyTuple_GET_ITEM( | PyObject *p, int pos) |
| PyObject* PyTuple_GetSlice( | PyObject *p, int low, int high) |
| int PyTuple_SetItem( | PyObject *p, int pos, PyObject *o) |
0 on success.
Note:
This function ``steals'' a reference to o.
| void PyTuple_SET_ITEM( | PyObject *p, int pos, PyObject *o) |
| int _PyTuple_Resize( | PyObject **p, int newsize) |
0 on success.
Client code should never assume that the resulting value of
*p will be the same as before calling this function.
If the object referenced by *p is replaced, the
original *p is destroyed. On failure, returns
-1 and sets *p to NULL, and raises
MemoryError or
SystemError.
Changed in version 2.2:
Removed unused third parameter, last_is_sticky.
See About this document... for information on suggesting changes.
| Web Proxy Viewer | New URL | Original Page |