Path: csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.166 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.10; '16,': 0.03; 'wed,': 0.15; 'wrote:': 0.16; '2015': 0.20; 'sep': 0.22; 'am,': 0.23; 'header :In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'to:addr:python.org': 0.40; 'needing': 0.63; 'situation': 0.67; 'to:name:python': 0.84; 'subject:True': 0.93; 'imagine': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=HxLfk1nnp9pD+zWLbuOH/MXGjohUdmGRfAql0hDy5p0=; b=gBiy/6un25xjYXE8fHXDxhtkmrAywBi8jPyA/GgArYSBIjc+TzEeuhC8w2OzSt4Ie0 SrpOweS8NLOVcvjKmnqEkZxIp7OJZ8ac492O8+kSuyBIo0NWM6QMNApqB5dj+ZnK6ckQ z2aTyzdvmU28nEcXmUFPNFdWon3gkQ8FqigUG2UsR7/bo+GKcyo0RzELR+gjP9OS/SYH ULW4EZCczE52Z3zkLNSZkiceoPQH2LQGSusDM4ElHhCP3f39FMvU/l1F5QG9puYkhXwG wFReN5krXrXTJRsTGumenxkQTK5Dk+DyQfQFfpKEaAXxSt8t+7Mrvb7uV7nR3AS8QCj7 aFzg== X-Received: by 10.129.31.135 with SMTP id f129mr29550770ywf.85.1442426271800; Wed, 16 Sep 2015 10:57:51 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55f9a5e9$0$1643$c3e8da3$5496439d@news.astraweb.com> References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <55f9a5e9$0$1643$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Wed, 16 Sep 2015 11:57:12 -0600 Subject: Re: True == 1 weirdness To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442426280 news.xs4all.nl 23780 [2001:888:2000:d::a6]:39578 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96710 On Wed, Sep 16, 2015 at 11:24 AM, Steven D'Aprano wrote: > > if word in line in text: > print("word in line and line in text") It find it hard to imagine how one would arrive at the situation of needing to check this.