示例#1
0
func (l *List) Tuple() *Tuple {
	ret := C.PyList_AsTuple(c(l))
	if ret == nil {
		panic(exception())
	}
	return newTuple(ret)
}
示例#2
0
// PyObject* PyList_AsTuple(PyObject *list)
// Return value: New reference.
// Return a new tuple object containing the contents of list; equivalent to tuple(list).
func PyList_AsTuple(self *PyObject) *PyObject {
	return togo(C.PyList_AsTuple(topy(self)))
}