Path: csiph.com!eternal-september.org!feeder.eternal-september.org!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'context': 0.05; 'false,': 0.07; 'received:internal': 0.09; 'semantics': 0.09; 'yeah,': 0.09; 'wed,': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'wrote:': 0.16; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'comparison': 0.29; 'point': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'true.': 0.33; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'doing': 0.38; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'header:Message-Id:1': 0.61; 'matter.': 0.66; 'subject:True': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=emwXnuivgRIJh8ofm/ZpNRAkU1I=; b=EAtkad gIecrtYnkL3aLyln4iqY+WApjdHO2xclpsxDgC63epeDKZvXPyXbMwP6a2VQXlVp XfsMDS0MUNE9t77WJ4VGdJovAFTYUgpi9km0+qFWIlf/179nFFh92BttsL51Wp6X cyx9Nv0RGAXRx8ZbV56VXXW24k7KNtymqbNPI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=emwXnuivgRIJh8o fm/ZpNRAkU1I=; b=OX1NpH0lz1JV2CgCkWrDdfaEgv4WFPtSSmv7VE63VUceM5r DYStEIKrAFZhI8fzEWT+cCNwnODwbKx7+DHvtqpLQJl8Q+sOvb7sDCbV3dPVdjap 9Idz9l/ZDJluyp7akeAii2aIpGoFEmACoK1jFd3SgocRt0P20gnXnUpwQ1SA= X-Sasl-Enc: BUpIwZDqG7J0tDLbOx0RGl8qQ3Camsx8SehmrviGchyi 1442470244 From: Random832 To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-746d2121 Subject: Re: True == 1 weirdness Date: Thu, 17 Sep 2015 02:10:44 -0400 In-Reply-To: <55fa1672$0$1659$c3e8da3$5496439d@news.astraweb.com> References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <1442412230.1762717.385286049.20841F36@webmail.messagingengine.com> <55f9a7e4$0$1661$c3e8da3$5496439d@news.astraweb.com> <55fa1672$0$1659$c3e8da3$5496439d@news.astraweb.com> 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: 1442470246 news.xs4all.nl 23810 [2001:888:2000:d::a6]:36502 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96742 On Wed, Sep 16, 2015, at 21:25, Steven D'Aprano wrote: > So what? The intended purpose of `is` and `==` is not to return True. It > is > to perform a comparison which may return False, or True. Yeah, but there's no point in doing a comparison unless you're doing it in a context where it *might* return true. Semantics matter.