[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 04 of 10] pyxl: Allow subclassing of auto-generated python types
tools/python/genwrap.py | 2 +- tools/python/xen/lowlevel/xl/xl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) # HG changeset patch # User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> # Date 1294761667 0 # Node ID 791046eea8ded39ad09f1cf4b8482580e2a42e6a # Parent 26fc86ef80278a10cd9954d7ce7e4221f5015baf pyxl: Allow subclassing of auto-generated python types Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> diff -r 26fc86ef8027 -r 791046eea8de tools/python/genwrap.py --- a/tools/python/genwrap.py Tue Jan 11 16:01:06 2011 +0000 +++ b/tools/python/genwrap.py Tue Jan 11 16:01:07 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 26fc86ef8027 -r 791046eea8de tools/python/xen/lowlevel/xl/xl.c --- a/tools/python/xen/lowlevel/xl/xl.c Tue Jan 11 16:01:06 2011 +0000 +++ b/tools/python/xen/lowlevel/xl/xl.c Tue Jan 11 16:01:07 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-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |