diff options
author | Tomas R <tomas.roun8@gmail.com> | 2023-05-07 04:05:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 19:05:34 -0700 |
commit | b35711d17a90251bdd57d255090e07daafe89f6c (patch) | |
tree | dfe3b59a5ba6fab793a990df1fb3ce29a5209e5f /Python | |
parent | 4ee2068c34bd45eddba7f6a8ee83f62d5b6932fc (diff) | |
download | cpython-git-b35711d17a90251bdd57d255090e07daafe89f6c.tar.gz |
gh-103886: Improve `builtins.__doc__` (#104179)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 8840bbabe4..ddddc03ca3 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, |