Re: [Libguestfs] [PATCH v2] python: add simple wrappers for PyObject<->string functions

2017-05-09 Thread noxdafox
On 09/05/17 16:48, Pino Toscano wrote: The current need for #ifdef's based on the presence of PyString_FromString makes both the OCaml code of the generator, and the generated C code a mess to read. Hence, add three simple wrappers to make both the OCaml, and C code more readable, and easier to

[Libguestfs] [PATCH v2] python: add simple wrappers for PyObject<->string functions

2017-05-09 Thread Pino Toscano
The current need for #ifdef's based on the presence of PyString_FromString makes both the OCaml code of the generator, and the generated C code a mess to read. Hence, add three simple wrappers to make both the OCaml, and C code more readable, and easier to tweak in the future. ---