diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-11-13 07:13:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 07:13:49 (GMT) |
commit | 1d75ef6b6186619081c166b21c71c15b4f98beb8 (patch) | |
tree | fc512ad848602f6cb118671267fa8d71ed1ac5f3 /Objects/boolobject.c | |
parent | d0058cbd1cd7e72307adab45759e1ea6adc05866 (diff) | |
download | cpython-1d75ef6b6186619081c166b21c71c15b4f98beb8.zip cpython-1d75ef6b6186619081c166b21c71c15b4f98beb8.tar.gz cpython-1d75ef6b6186619081c166b21c71c15b4f98beb8.tar.bz2 |
gh-111999: Add signatures and improve docstrings for builtins (GH-112000)
Diffstat (limited to 'Objects/boolobject.c')
-rw-r--r-- | Objects/boolobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index e2e3594..fb48dcb 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -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."); |