[docs] [issue23153] Clarify Boolean Clause Results
Ethan Furman
report at bugs.python.org
Sat Jan 3 05:07:36 CET 2015
Ethan Furman added the comment:
`or` does not return the last item evaluated -- it returns the first truthy item, or, if no truthy items, the last false item:
--> 0 or {}
{}
--> 0 or 1 or {}
1
----------
nosy: +ethan.furman
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23153>
_______________________________________
More information about the docs
mailing list