This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients sangeetamchauhan, steven.daprano, tim.peters
Date 2019-09-09.16:43:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568047391.4.0.648197162119.issue38060@roundup.psfhosted.org>
In-reply-to
Content
BTW, the docs also spell out that "and" and "or" ALWAYS evaluate their left operand before their right operand, and don't evaluate the right operand at all if the result of evaluating the left operand is true (for "or") or false (for "and").  So, e.g., 

    result = (EXPR1) or (EXPR2)

acts like

    result = EXPR1
    if not bool(result):
        result = EXPR2
History
Date User Action Args
2019-09-09 16:43:11tim.peterssetrecipients: + tim.peters, steven.daprano, sangeetamchauhan
2019-09-09 16:43:11tim.peterssetmessageid: <1568047391.4.0.648197162119.issue38060@roundup.psfhosted.org>
2019-09-09 16:43:11tim.peterslinkissue38060 messages
2019-09-09 16:43:11tim.peterscreate