コード例 #1
0
ファイル: sequence.go プロジェクト: gward/go-python
// 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)
}
コード例 #2
0
ファイル: list.go プロジェクト: ericsnowcurrently/qur-gopy
func (l *List) Sort() error {
	ret := C.PyList_Sort(c(l))
	return int2Err(ret)
}