Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108136

Re: Conditionals And Control Flows

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Michael Selik <michael.selik@gmail.com>
Newsgroups comp.lang.python
Subject Re: Conditionals And Control Flows
Date Wed, 04 May 2016 14:56:25 +0000
Lines 10
Message-ID <mailman.386.1462373798.32212.python-list@python.org> (permalink)
References <f12b6c42-8edb-4f91-8994-7c122e99461e@googlegroups.com> <CAGgTfkOcoF7epw45sD8uAXvJevDtnCJoeCii-3WWcRYsQR-n=w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de MOqZ9VNV5L/mfRIPCllUiw61JCyli2BYzqHbl8tgP5FQ==
Return-Path <michael.selik@gmail.com>
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&gt;': 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 <f12b6c42-8edb-4f91-8994-7c122e99461e@googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAGgTfkOcoF7epw45sD8uAXvJevDtnCJoeCii-3WWcRYsQR-n=w@mail.gmail.com>
X-Mailman-Original-References <f12b6c42-8edb-4f91-8994-7c122e99461e@googlegroups.com>
Xref csiph.com comp.lang.python:108136

Show key headers only | View raw


On Wed, May 4, 2016 at 10:46 AM Cai Gengyang <gengyangcai@gmail.com> 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
)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Conditionals And Control Flows Cai Gengyang <gengyangcai@gmail.com> - 2016-05-04 07:41 -0700
  Re: Conditionals And Control Flows Bob Gailer <bgailer@gmail.com> - 2016-05-04 10:54 -0400
  Re: Conditionals And Control Flows Michael Selik <michael.selik@gmail.com> - 2016-05-04 14:56 +0000
  Re: Conditionals And Control Flows Chris Angelico <rosuav@gmail.com> - 2016-05-05 00:58 +1000
  Re: Conditionals And Control Flows Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-04 18:10 +0300
    Re: Conditionals And Control Flows Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-04 16:21 +0100
    Re: Conditionals And Control Flows Cai Gengyang <gengyangcai@gmail.com> - 2016-05-04 08:23 -0700
      Re: Conditionals And Control Flows Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-04 19:41 +0300
  Re: Conditionals And Control Flows Stephen Hansen <me+python@ixokai.io> - 2016-05-04 11:54 -0700

csiph-web