summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTomas R <tomas.roun8@gmail.com>2023-05-07 02:05:34 (GMT)
committerGitHub <noreply@github.com>2023-05-07 02:05:34 (GMT)
commitb35711d17a90251bdd57d255090e07daafe89f6c (patch)
treedfe3b59a5ba6fab793a990df1fb3ce29a5209e5f /Python
parent4ee2068c34bd45eddba7f6a8ee83f62d5b6932fc (diff)
downloadcpython-b35711d17a90251bdd57d255090e07daafe89f6c.zip
cpython-b35711d17a90251bdd57d255090e07daafe89f6c.tar.gz
cpython-b35711d17a90251bdd57d255090e07daafe89f6c.tar.bz2
gh-103886: Improve `builtins.__doc__` (#104179)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 8840bba..ddddc03 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -3014,9 +3014,16 @@ static PyMethodDef builtin_methods[] = {
};
PyDoc_STRVAR(builtin_doc,
-"Built-in functions, exceptions, and other objects.\n\
+"Built-in functions, types, exceptions, and other objects.\n\
\n\
-Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.");
+This module provides direct access to all 'built-in'\n\
+identifiers of Python; for example, builtins.len is\n\
+the full name for the built-in function len().\n\
+\n\
+This module is not normally accessed explicitly by most\n\
+applications, but can be useful in modules that provide\n\
+objects with the same name as a built-in value, but in\n\
+which the built-in of that name is also needed.");
static struct PyModuleDef builtinsmodule = {
PyModuleDef_HEAD_INIT,