Skip to content

Commit b35711d

Browse files
gh-103886: Improve builtins.__doc__ (#104179)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 4ee2068 commit b35711d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: Python/bltinmodule.c

+9-2
Original file line numberDiff line numberDiff line change
@@ -3014,9 +3014,16 @@ static PyMethodDef builtin_methods[] = {
30143014
};
30153015

30163016
PyDoc_STRVAR(builtin_doc,
3017-
"Built-in functions, exceptions, and other objects.\n\
3017+
"Built-in functions, types, exceptions, and other objects.\n\
30183018
\n\
3019-
Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.");
3019+
This module provides direct access to all 'built-in'\n\
3020+
identifiers of Python; for example, builtins.len is\n\
3021+
the full name for the built-in function len().\n\
3022+
\n\
3023+
This module is not normally accessed explicitly by most\n\
3024+
applications, but can be useful in modules that provide\n\
3025+
objects with the same name as a built-in value, but in\n\
3026+
which the built-in of that name is also needed.");
30203027

30213028
static struct PyModuleDef builtinsmodule = {
30223029
PyModuleDef_HEAD_INIT,

0 commit comments

Comments
 (0)