pytalloc: Add docstring for talloc.Object.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 5 Dec 2010 16:06:58 +0000 (17:06 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 5 Dec 2010 17:12:59 +0000 (18:12 +0100)
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Dec  5 18:12:59 CET 2010 on sn-devel-104

lib/talloc/pytalloc.c

index 262ba493c5ba96036dccc923dab485a16905cf7d..6ddcac988b0ba2d7123dac44c0afdd3bb05d5802 100644 (file)
@@ -114,6 +114,7 @@ static int py_talloc_default_cmp(PyObject *_obj1, PyObject *_obj2)
 
 static PyTypeObject TallocObject_Type = {
        .tp_name = "talloc.Object",
+       .tp_doc = "Python wrapper for a talloc-maintained object.",
        .tp_basicsize = sizeof(py_talloc_Object),
        .tp_dealloc = (destructor)py_talloc_dealloc,
        .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
@@ -128,7 +129,8 @@ void inittalloc(void)
        if (PyType_Ready(&TallocObject_Type) < 0)
                return;
 
-       m = Py_InitModule3("talloc", talloc_methods, "Debug utilities for talloc-wrapped objects.");
+       m = Py_InitModule3("talloc", talloc_methods,
+                                          "Python wrapping of talloc-maintained objects.");
        if (m == NULL)
                return;