Skip to content

Commit 8f23cad

Browse files
miss-islingtontomasr8JelleZijlstra
authored
[3.11] gh-103886: Improve builtins.__doc__ (GH-104179) (#104257)
gh-103886: Improve `builtins.__doc__` (GH-104179) (cherry picked from commit b35711d) Co-authored-by: Tomas R <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent cf1c25f commit 8f23cad

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Python/bltinmodule.c

+9-2
Original file line numberDiff line numberDiff line change
@@ -2999,9 +2999,16 @@ static PyMethodDef builtin_methods[] = {
29992999
};
30003000

30013001
PyDoc_STRVAR(builtin_doc,
3002-
"Built-in functions, exceptions, and other objects.\n\
3002+
"Built-in functions, types, exceptions, and other objects.\n\
30033003
\n\
3004-
Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.");
3004+
This module provides direct access to all 'built-in'\n\
3005+
identifiers of Python; for example, builtins.len is\n\
3006+
the full name for the built-in function len().\n\
3007+
\n\
3008+
This module is not normally accessed explicitly by most\n\
3009+
applications, but can be useful in modules that provide\n\
3010+
objects with the same name as a built-in value, but in\n\
3011+
which the built-in of that name is also needed.");
30053012

30063013
static struct PyModuleDef builtinsmodule = {
30073014
PyModuleDef_HEAD_INIT,

0 commit comments

Comments
 (0)