()
| 74 | } |
| 75 | |
| 76 | func (t *Tuple) Size() int { |
| 77 | ret := C.PyTuple_Size(t.c()) |
| 78 | if ret < 0 { |
| 79 | panic(exception()) |
| 80 | } |
| 81 | return int(ret) |
| 82 | } |
| 83 | |
| 84 | // Return the object at position pos in the tuple pointed to by p. If pos is out of bounds, |
| 85 | // return NULL and sets an IndexError exception. |