summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2019-05-24 10:43:29 (GMT)
committerGitHub <noreply@github.com>2019-05-24 10:43:29 (GMT)
commitc95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c (patch)
tree700a509aba514a0011d6c786874d79df7dae5081 /Objects
parentf1e17e9f97d9a4e97a5d99574775ee343a3a74fb (diff)
downloadcpython-c95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c.zip
cpython-c95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c.tar.gz
cpython-c95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c.tar.bz2
bpo-20285: Improve help docs for object (GH-4759)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 49b45b8..339f728 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -4750,6 +4750,11 @@ static PyMethodDef object_methods[] = {
{0}
};
+PyDoc_STRVAR(object_doc,
+"object()\n--\n\n"
+"The base class of the class hierarchy.\n\n"
+"When called, it accepts no arguments and returns a new featureless\n"
+"instance that has no instance attributes and cannot be given any.\n");
PyTypeObject PyBaseObject_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
@@ -4772,7 +4777,7 @@ PyTypeObject PyBaseObject_Type = {
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
- PyDoc_STR("object()\n--\n\nThe most base type"), /* tp_doc */
+ object_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
object_richcompare, /* tp_richcompare */