示例#1
0
文件: dict.go 项目: gbbr/textmate
// Values returns a *List containing all the values from the dictionary d, as
// with the Python "d.values()".
//
// Return value: New Reference.
func (d *Dict) Values() (*List, error) {
	ret := C.PyDict_Values(c(d))
	return newList(ret), exception()
}
示例#2
0
文件: dict.go 项目: remh/go-python
// PyObject* PyDict_Values(PyObject *p)
// Return value: New reference.
// Return a PyListObject containing all the values from the dictionary p, as in the dictionary method dict.values().
func PyDict_Values(self *PyObject) *PyObject {
	return togo(C.PyDict_Values(topy(self)))
}