[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0/8] Python 3 bindings



On Thu, Feb 23, 2017 at 11:48:20AM +0100, Marek Marczykowski-Górecki wrote:
> This patch series add support for Python3 in tools/python. As most python
> modules, it looks at $PYTHON variable to what python use, so to use this
> PYTHON=python3 needs to be defined in a build environment. If both python2 and
> python3 versions are needed, then python bindings needs to be built twice. In
> most cases it will be packaging scripts responsibility.
> 
> Patches 1-4 are cleanups not really specific to python3, but making it easier.
> 
> Marek Marczykowski-Górecki (8):
>   python: check return value of PyErr_NewException
>   python: drop tp_getattr implementation
>   python: use Py_TYPE instead of looking directly into PyObject_HEAD
>   python: initialize specific fields of PyTypeObject
>   python: use PyBytes/PyUnicode instead of PyString
>   python: use PyLong_* for constructing 'int' type in Python3
>   python: adjust module initalization for Python3
>   python: handle long type in scripts
> 
>  tools/python/xen/lowlevel/xc/xc.c   | 148 
> +++++++++++++++++++-----------------
>  tools/python/xen/lowlevel/xs/xs.c   | 118 ++++++++++++++++------------
>  tools/python/xen/migration/libxc.py |  32 ++++----
>  3 files changed, 165 insertions(+), 133 deletions(-)

This series looks rather nice. And, to the best of my knowledge, they
are correct:

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

> 
> -- 
> 2.7.4
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.