mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-111999: Add signatures and improve docstrings for builtins (GH-112000)
This commit is contained in:
parent
d0058cbd1c
commit
1d75ef6b61
8 changed files with 74 additions and 39 deletions
|
@ -110,9 +110,10 @@ bool_xor(PyObject *a, PyObject *b)
|
|||
/* Doc string */
|
||||
|
||||
PyDoc_STRVAR(bool_doc,
|
||||
"bool(x) -> bool\n\
|
||||
"bool(object=False, /)\n\
|
||||
--\n\
|
||||
\n\
|
||||
Returns True when the argument x is true, False otherwise.\n\
|
||||
Returns True when the argument is true, False otherwise.\n\
|
||||
The builtins True and False are the only two instances of the class bool.\n\
|
||||
The class bool is a subclass of the class int, and cannot be subclassed.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue