git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4065280
)
UFollow conventions for __repr__ contents for talloc python wrapper.
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 23 May 2008 11:13:36 +0000
(13:13 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Fri, 23 May 2008 11:13:36 +0000
(13:13 +0200)
source/scripting/python/pytalloc.c
patch
|
blob
|
history
diff --git
a/source/scripting/python/pytalloc.c
b/source/scripting/python/pytalloc.c
index aa0ae9bf90742864ad4b480279a038eeaf149c3c..d669eb0f24a663204f1231f87a7629424ad3232b 100644
(file)
--- a/
source/scripting/python/pytalloc.c
+++ b/
source/scripting/python/pytalloc.c
@@
-41,5
+41,5
@@
PyObject *py_talloc_default_repr(PyObject *py_obj)
py_talloc_Object *obj = (py_talloc_Object *)py_obj;
PyTypeObject *type = (PyTypeObject*)PyObject_Type((PyObject *)obj);
- return PyString_FromFormat("<%s
>", type->tp_name
);
+ return PyString_FromFormat("<%s
talloc object at 0x%x>", type->tp_name, (intptr_t)py_obj
);
}