]> granicus.if.org Git - python/commitdiff
Mark the closed attribute of the profiler with PyDoc_STR(), and added
authorFred Drake <fdrake@acm.org>
Wed, 17 Jul 2002 19:38:05 +0000 (19:38 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 17 Jul 2002 19:38:05 +0000 (19:38 +0000)
a docstring for the info attribute of the logreader object.

Modules/_hotshot.c

index 32137b28b4064812e8c2c713b75bdf18b6acb2b3..4abbcb97af96fe5f8782ed7a744511228b33d3c8 100644 (file)
@@ -1181,7 +1181,7 @@ profiler_get_closed(ProfilerObject *self, void *closure)
 
 static PyGetSetDef profiler_getsets[] = {
     {"closed", (getter)profiler_get_closed, NULL,
-     "True if the profiler's output file has already been closed."},
+     PyDoc_STR("True if the profiler's output file has already been closed.")},
     {NULL}
 };
 
@@ -1250,7 +1250,8 @@ static PyMethodDef logreader_methods[] = {
 };
 
 static PyMemberDef logreader_members[] = {
-    {"info", T_OBJECT, offsetof(LogReaderObject, info), RO},
+    {"info", T_OBJECT, offsetof(LogReaderObject, info), RO,
+     PyDoc_STR("Dictionary mapping informational keys to lists of values.")},
     {NULL}
 };