MCPcopy Create free account
hub / github.com/goplus/py / GetSlice

Method GetSlice

tuple.go:93–99  ·  view source on GitHub ↗
(low, high int)

Source from the content-addressed store, hash-verified

91}
92
93func (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.

Callers

nothing calls this directly

Calls 3

exceptionFunction · 0.85
newTupleFunction · 0.85
cMethod · 0.80

Tested by

no test coverage detected