mirror of
https://github.com/python/cpython.git
synced 2025-11-09 18:11:38 +00:00
[3.11] gh-103886: Improve builtins.__doc__ (GH-104179) (#104257)
gh-103886: Improve `builtins.__doc__` (GH-104179)
(cherry picked from commit b35711d17a)
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
cf1c25fd6e
commit
8f23cadc4c
1 changed files with 9 additions and 2 deletions
|
|
@ -2999,9 +2999,16 @@ static PyMethodDef builtin_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
PyDoc_STRVAR(builtin_doc,
|
PyDoc_STRVAR(builtin_doc,
|
||||||
"Built-in functions, exceptions, and other objects.\n\
|
"Built-in functions, types, exceptions, and other objects.\n\
|
||||||
\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 = {
|
static struct PyModuleDef builtinsmodule = {
|
||||||
PyModuleDef_HEAD_INIT,
|
PyModuleDef_HEAD_INIT,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue