Skip to content

Commit 20b595e

Browse files
committed
Improve builtins.__doc__
1 parent f5c3838 commit 20b595e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Python/bltinmodule.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,14 @@ static PyMethodDef builtin_methods[] = {
30163016
PyDoc_STRVAR(builtin_doc,
30173017
"Built-in functions, 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.open` is\n\
3021+
the full name for the built-in function `open()`.\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)