func (obj *BaseObject) Dir() (Object, error) { ret := C.PyObject_Dir(c(obj)) return obj2ObjErr(ret) }
func (obj *Base) Dir() (*Base, error) { ret := C.PyObject_Dir(obj.c()) return obj2ObjErr(ret) }
// 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)) }