bindings: python: provide a helper for calling methods with python args
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 13 Jul 2018 13:07:47 +0000 (15:07 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 13 Jul 2018 13:08:45 +0000 (15:08 +0200)
commitf7e284ee6ea1332a2577c1b85167cb4d2a41ccf3
tree296b52e952e45e27532f4a9025ba799916a46aaf
parentdf5d7b4f4276f24174c955e9edaa047a09c6e7c4
bindings: python: provide a helper for calling methods with python args

Wrap the calls to PyObject_GetAttrString() and PyObject_Call() in
a single helper that allows to call a python method and pass it the
args and kwds tuples directly as received from the interpreter.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
bindings/python/gpiodmodule.c