Skip to content

Commit

Permalink
gh-103886: Improve builtins.__doc__ (#104179)
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
tomasr8 and JelleZijlstra authored May 7, 2023
1 parent 4ee2068 commit b35711d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Python/bltinmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b35711d

Please sign in to comment.