gh-103886: Improve builtins.__doc__ (#104179)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Tomas R 2023-05-07 04:05:34 +02:00 committed by GitHub
parent 4ee2068c34
commit b35711d17a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,