Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Selik Newsgroups: comp.lang.python Subject: Re: Conditionals And Control Flows Date: Wed, 04 May 2016 14:56:25 +0000 Lines: 10 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de MOqZ9VNV5L/mfRIPCllUiw61JCyli2BYzqHbl8tgP5FQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.03; 'docs.': 0.09; 'python.': 0.11; 'wed,': 0.15; '"and"': 0.16; '2016': 0.16; 'boolean': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'email addr:gmail.com>': 0.18; 'to:2**1': 0.21; 'trying': 0.22; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'supposed': 0.31; 'url:python': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'to:addr:python.org': 0.40; 'url:3': 0.60; 'subject:Control': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Yg6Uh/w0AYVFIlt0TG2gZ1Riqj/VHCpumG8I4iS7HDU=; b=0oqwJSumnuCS1EVc8Zu3BNQIOHGiF+1Zzi+t2jc3VechFJ4joERlLPxfxeEunfyv8W hbe2+Mijaycy+q2bF+RxMKvdb5kD1hKKG+fC0G8qRfMyAnrQbC8O6N/shGeTT+pNgsnR 9ANng9K4D5NwanqBWz7scejM2SFccVafVGUHxKSLZz0M++tGUYQqwrVt0VhpeWHn2Tis kRvAQfN+jWsEN1YUxdQhPaXH9MSmzp0+6NBub+ccHiG0/i6ZR/R4BaX6hI1w41CHoce7 ZrO8Py/UwNOoUnBfxg9niL48qtoymNk7BlTtA9kmkNDbWwAu0W755qdPhAP6TOiSA+bV qpRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Yg6Uh/w0AYVFIlt0TG2gZ1Riqj/VHCpumG8I4iS7HDU=; b=fcWoXepAP/uFUZfedBSIQUfpr9DBxArWxdUMiI++bfT4OmyPiPJbrYn8kqQTGGZ8O1 oyDj/rEcmM7nBgIzWBhH2nH7SyZevtxf9X6P6Ena5h2hsKMSIJtZSBXk78LUYqr0Pcxx LjtzrhJToN/xpLKrulimL8CmvMuDq/gDP8/mxvZi2f95RCA4MmKC11QX8H2DUdjj2Heg eNjTzw6FKqj18ZytczKUPzcl5XKORc824vSqz0a4clOEd1DtP8Q4hH9DsEuvdyNohnOp 8jptiKGPqQiKY+iVQOx2k8em6ZWksvWMlzAdRFW7YcOoD7gPfYT5FiReZ8pv4+gx1HI/ q2EQ== X-Gm-Message-State: AOPr4FUs4bck3txc40GpFKXaCKPB5Ch6qbkVnQaG1rIAeZuLfZ4fTH9hpxEiEuB07mceQu1yepeEiemWzSRblg== X-Received: by 10.55.15.81 with SMTP id z78mr9031806qkg.209.1462373794973; Wed, 04 May 2016 07:56:34 -0700 (PDT) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108136 On Wed, May 4, 2016 at 10:46 AM Cai Gengyang wrote: > I am trying to understand the boolean operator "and" in Python. It is > supposed to return "True" when the expression on both sides of "and" are > true > Not exactly, because they will short-circuit. Take a look at the docs. ( https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not )