Re: [Libguestfs] [nbdkit PATCH 2/2] python: Simplify calling into plugin

2018-04-09 Thread Eric Blake
On 04/06/2018 05:24 PM, Eric Blake wrote: > PyObject_CallObject is powerful, but awkward - we have to wrap > all arguments into a temporary tuple before using it. > > Let python do more of the work by using PyObject_CallFunction > anywhere that all arguments can be described by a Py_BuildValue()

Re: [Libguestfs] [nbdkit PATCH 2/2] python: Simplify calling into plugin

2018-04-07 Thread Eric Blake
On 04/06/2018 05:24 PM, Eric Blake wrote: > PyObject_CallObject is powerful, but awkward - we have to wrap > all arguments into a temporary tuple before using it. > > Let python do more of the work by using PyObject_CallFunction > anywhere that all arguments can be described by a Py_BuildValue()