mirror of
https://github.com/python/cpython.git
synced 2025-09-12 19:57:40 +00:00
[3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473)
(cherry picked from commit 0a222db2bc
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
7da97f6181
commit
c596ecbf82
2 changed files with 3 additions and 1 deletions
|
@ -7996,7 +7996,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, "<<"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue