Ejemplo n.º 1
0
// Keys returns a *List containing all the keys from the dictionary d, as with
// the Python "d.keys()".
//
// Return value: New Reference.
func (d *Dict) Keys() (*List, error) {
	ret := C.PyDict_Keys(c(d))
	return newList(ret), exception()
}
Ejemplo n.º 2
0
// PyObject* PyDict_Keys(PyObject *p)
// Return value: New reference.
// Return a PyListObject containing all the keys from the dictionary, as in the dictionary method dict.keys().
func PyDict_Keys(self *PyObject) *PyObject {
	return togo(C.PyDict_Keys(topy(self)))
}