From: Tomas R Date: Sun, 7 May 2023 02:05:34 +0000 (+0200) Subject: gh-103886: Improve `builtins.__doc__` (#104179) X-Git-Tag: v3.12.0b1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b35711d17a90251bdd57d255090e07daafe89f6c;p=thirdparty%2FPython%2Fcpython.git gh-103886: Improve `builtins.__doc__` (#104179) Co-authored-by: Jelle Zijlstra --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 8840bbabe4b5..ddddc03ca316 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,