diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2022-02-21 15:42:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 15:42:27 (GMT) |
commit | 0a222db2bca63070f429c0e613707da1bdfaf0e0 (patch) | |
tree | db0fb0161830659da95f2fffd3f0ff086aeb1971 /Objects | |
parent | 2cae93832f46b245847bdc252456ddf7742ef45e (diff) | |
download | cpython-0a222db2bca63070f429c0e613707da1bdfaf0e0.zip cpython-0a222db2bca63070f429c0e613707da1bdfaf0e0.tar.gz cpython-0a222db2bca63070f429c0e613707da1bdfaf0e0.tar.bz2 |
fix __bool__ docstring (GH-31301)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 8c49011..4b7035c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8065,7 +8065,7 @@ static slotdef slotdefs[] = { UNSLOT("__abs__", nb_absolute, slot_nb_absolute, wrap_unaryfunc, "abs(self)"), UNSLOT("__bool__", nb_bool, slot_nb_bool, wrap_inquirypred, - "self != 0"), + "True if self else False"), UNSLOT("__invert__", nb_invert, slot_nb_invert, wrap_unaryfunc, "~self"), BINSLOT("__lshift__", nb_lshift, slot_nb_lshift, "<<"), RBINSLOT("__rlshift__", nb_lshift, slot_nb_lshift, "<<"), |