[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools/python/pyxl: Allow subclassing of auto-generated python types
# HG changeset patch # User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> # Date 1294772236 0 # Node ID 659ffaf66e88aae3fd8e4031b3d059aff3757fe5 # Parent f80eeb755b1590a927daef81910f30c56bf25247 tools/python/pyxl: Allow subclassing of auto-generated python types Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/python/genwrap.py | 2 +- tools/python/xen/lowlevel/xl/xl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r f80eeb755b15 -r 659ffaf66e88 tools/python/genwrap.py --- a/tools/python/genwrap.py Tue Jan 11 18:56:48 2011 +0000 +++ b/tools/python/genwrap.py Tue Jan 11 18:57:16 2011 +0000 @@ -151,7 +151,7 @@ static PyTypeObject Py%s_Type= { NULL, /* tp_getattro */ NULL, /* tp_setattro */ NULL, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ "%s", /* tp_doc */ NULL, /* tp_traverse */ NULL, /* tp_clear */ diff -r f80eeb755b15 -r 659ffaf66e88 tools/python/xen/lowlevel/xl/xl.c --- a/tools/python/xen/lowlevel/xl/xl.c Tue Jan 11 18:56:48 2011 +0000 +++ b/tools/python/xen/lowlevel/xl/xl.c Tue Jan 11 18:57:16 2011 +0000 @@ -628,7 +628,7 @@ static PyTypeObject PyXlType = { NULL, /* tp_getattro */ NULL, /* tp_setattro */ NULL, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ "libxenlight connection", /* tp_doc */ NULL, /* tp_traverse */ NULL, /* tp_clear */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |