Example #1
0
// int PyList_Sort(PyObject *list)
// Sort the items of list in place. Return 0 on success, -1 on failure. This is equivalent to list.sort().
func PyList_Sort(self *PyObject) error {
	err := C.PyList_Sort(topy(self))
	return int2err(err)
}
Example #2
0
func (l *List) Sort() error {
	ret := C.PyList_Sort(c(l))
	return int2Err(ret)
}