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

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



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(-)

-- 
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®.