You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2011-04-01.14:35:00.302>created_at=<Date2011-04-01.14:22:55.520>labels= ['invalid']
title='and is not a logical conjugation'updated_at=<Date2011-04-01.14:35:00.279>user='https://bugs.python.org/theiain'
The doc0 says:
"""
x and y: if x is false, then x, else y
"""
Boolean operators in Python always return one of the two values (rather than True/False), and they are also short-circuit operators, so:
if x is false, the whole expression is false regardless of the value of y, so x is returned without evaluating y;
if x is true, y could be either:
true: so the whole expression is true and y is returned;
false: so the whole expression is false and y is returned;
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: