(low, high int)
| 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)) |
| 95 | if ret == nil { |
| 96 | return nil, exception() |
| 97 | } |
| 98 | return newTuple(ret), nil |
| 99 | } |
| 100 | |
| 101 | // Insert a reference to object o at position pos of the tuple pointed to by p. Return 0 on success. |
| 102 | // Note This function “steals” a reference to o. |