예제 #1
0
파일: sequence.go 프로젝트: gward/go-python
// int PyList_Reverse(PyObject *list)
// Reverse the items of list in place. Return 0 on success, -1 on failure. This is the equivalent of list.reverse().
func PyList_Reverse(self *PyObject) error {
	err := C.PyList_Reverse(topy(self))
	return int2err(err)
}
예제 #2
0
func (l *List) Reverse() error {
	ret := C.PyList_Reverse(c(l))
	return int2Err(ret)
}