search for: guestfs_int_py_cr

Displaying 3 results from an estimated 3 matches for "guestfs_int_py_cr".

Did you mean: guestfs_int_py_
2016 May 05
1
[PATCH] python: use constants instead of raw values
...6 +37,13 @@ static PyObject **get_all_event_callbacks (guestfs_h *g, size_t *len_rtn); +void +guestfs_int_py_extend_module (PyObject *module) +{ + PyModule_AddIntMacro(module, GUESTFS_CREATE_NO_ENVIRONMENT); + PyModule_AddIntMacro(module, GUESTFS_CREATE_NO_CLOSE_ON_EXIT); +} + PyObject * guestfs_int_py_create (PyObject *self, PyObject *args) { diff --git a/python/guestfs-py.h b/python/guestfs-py.h index da5f483..f2246a6 100644 --- a/python/guestfs-py.h +++ b/python/guestfs-py.h @@ -59,6 +59,8 @@ put_handle (guestfs_h *g) #endif } +extern void guestfs_int_py_extend_module (PyObject *module); +...
2017 May 21
3
[PATCH 0/2] python: improved UTF8 decoding error handling
The Python 3 bindings currently are unable to deal with non UTF8 characters. This series continues what proposed in RHBZ#1406906. A new function 'set_decode_error_handler' allows the User to specify how to deal with decoding errors. The default behaviour will be raising a UnicodeDecodeError. If the handler is changed to 'surrogateescape', non UTF8 characters will be escaped in a
2017 May 21
0
[PATCH 2/2] python: unicode decode handler error scheme setter
...7c1f80bb..66bb7f27d 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -82,6 +82,7 @@ put_handle (guestfs_h *g) } extern void guestfs_int_py_extend_module (PyObject *module); +extern PyObject *guestfs_int_py_set_decode_error_handler (PyObject *self, PyObject *args); extern PyObject *guestfs_int_py_create (PyObject *self, PyObject *args); extern PyObject *guestfs_int_py_close (PyObject *self, PyObject *args); @@ -577,6 +578,8 @@ and generate_python_module () = (* Table of functions. *) pr "static PyMethodDef methods[] = {\n"; + pr " { (char *) \"set_decode_error_han...