MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / IsCallable

Method IsCallable

pkg/filament/cpython/object.go:345–347  ·  view source on GitHub ↗

IsCallable determines if the object is callable.

()

Source from the content-addressed store, hash-verified

343
344// IsCallable determines if the object is callable.
345func (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.
350func (ob *PyObject) CallableArgCount() uint32 {

Callers 2

NewFunction · 0.80
TestModuleRegisterFnFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestModuleRegisterFnFunction · 0.64