MCPcopy Create free account
hub / github.com/TykTechnologies/tyk / PyObjectCallObject

Function PyObjectCallObject

dlpython/helpers.go:112–118  ·  view source on GitHub ↗

PyObjectCallObject wraps PyObject_CallObject

(o unsafe.Pointer, args unsafe.Pointer)

Source from the content-addressed store, hash-verified

110
111// PyObjectCallObject wraps PyObject_CallObject
112func PyObjectCallObject(o unsafe.Pointer, args unsafe.Pointer) (unsafe.Pointer, error) {
113 ret := PyObject_CallObject(ToPyObject(o), ToPyObject(args))
114 if ret == nil {
115 return nil, errors.New("PyObjectCallObject failed")
116 }
117 return unsafe.Pointer(ret), nil
118}
119
120// PyObjectGetAttr wraps PyObject_GetAttr
121func PyObjectGetAttr(o unsafe.Pointer, attr interface{}) (unsafe.Pointer, error) {

Callers

nothing calls this directly

Calls 2

PyObject_CallObjectFunction · 0.85
ToPyObjectFunction · 0.85

Tested by

no test coverage detected