Return the object at position pos in the tuple pointed to by p. If pos is out of bounds, return NULL and sets an IndexError exception. Return value: Borrowed reference.
(pos int)
| 86 | // |
| 87 | // Return value: Borrowed reference. |
| 88 | func (t *Tuple) GetItem(pos int) (*Base, error) { |
| 89 | ret := C.PyTuple_GetItem(t.c(), C.Py_ssize_t(pos)) |
| 90 | return obj2ObjErr(ret) |
| 91 | } |
| 92 | |
| 93 | func (t *Tuple) GetSlice(low, high int) (*Tuple, error) { |
| 94 | ret := C.PyTuple_GetSlice(t.c(), C.Py_ssize_t(low), C.Py_ssize_t(high)) |
no test coverage detected