IsCallable determines if the object is callable.
()
| 343 | |
| 344 | // IsCallable determines if the object is callable. |
| 345 | func (ob *PyObject) IsCallable() bool { |
| 346 | return C.PyCallable_Check(ob.rawptr) > 0 |
| 347 | } |
| 348 | |
| 349 | // CallableArgCount returns the number of arguments declared in the callable Python object. |
| 350 | func (ob *PyObject) CallableArgCount() uint32 { |
no outgoing calls