]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103886: Improve `builtins.__doc__` (#104179)
authorTomas R <tomas.roun8@gmail.com>
Sun, 7 May 2023 02:05:34 +0000 (04:05 +0200)
committerGitHub <noreply@github.com>
Sun, 7 May 2023 02:05:34 +0000 (19:05 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Python/bltinmodule.c

index 8840bbabe4b584706f0fc2fc2b220745de4a9f1f..ddddc03ca316e044d714b20dd5a0bee3f4cdc010 100644 (file)
@@ -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,