예제 #1
0
파일: base.go 프로젝트: xushiwei/gopy
func (obj *BaseObject) Dir() (Object, error) {
	ret := C.PyObject_Dir(c(obj))
	return obj2ObjErr(ret)
}
예제 #2
0
파일: object.go 프로젝트: MogeiWang/py
func (obj *Base) Dir() (*Base, error) {
	ret := C.PyObject_Dir(obj.c())
	return obj2ObjErr(ret)
}
예제 #3
0
파일: object.go 프로젝트: remh/go-python
// 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))

}