Ejemplo n.º 1
0
func (obj *BaseObject) Dir() (Object, error) {
	ret := C.PyObject_Dir(c(obj))
	return obj2ObjErr(ret)
}
Ejemplo n.º 2
0
func (obj *Base) Dir() (*Base, error) {
	ret := C.PyObject_Dir(obj.c())
	return obj2ObjErr(ret)
}
Ejemplo n.º 3
0
// PyObject* PyObject_Dir()
// Return value: New reference.
// This is equivalent to the Python expression dir(o), returning a (possibly empty) list of strings appropriate for the object argument, or NULL if there was an error. If the argument is NULL, this is like the Python dir(), returning the names of the current locals; in this case, if no execution frame is active then NULL is returned but PyErr_Occurred() will return false.
func (self *PyObject) PyObject_Dir() *PyObject {
	return togo(C.PyObject_Dir(self.ptr))

}