Пример #1
0
// 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)
}