Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'value,': 0.04; 'kind,': 0.05; 'cc:addr:python-list': 0.11; '"=="': 0.16; '"is"': 0.16; 'convey': 0.16; 'equal.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'simpler': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'could': 0.34; 'knowledge': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'even': 0.60; 'more': 0.64; 'mar': 0.68; 'confusion.': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=TmwVL3E2GeyTCN5wjy34Dmry/2Cyu4Ucpfa3HA1C1/8=; b=L7wHWkgdSm+TeA2edP0J5EZlCnjfP7jL4utgAn5gNaL+ryFqqvxac2vAeDTMGuQe2t QvDA45O9w+wLdCvG/lsGQFiBObXRYeP2+7NypQX3jYgs/Dhvd3JdfW1/02Yg+bRc94md iYbnC0IaGjrHA3NhnBEznO+CWe52rj9Az5L4HXMqazR2501NiG/uK9ZwMwT8v4JNh3zx UxeqdhHuNg9TKMSO1lCmDM2sXEr79PbC4RO4VKBUnIz+5gkkCNbDE8PcA7kK+PTaWloZ FvTSKk/kH7wuktZGXGgNMm/ttzolnPsgPc9WvDywVvn6mkftoTVFmjIyjNM0YsQPSJz8 wURg== MIME-Version: 1.0 X-Received: by 10.68.197.36 with SMTP id ir4mr22273980pbc.46.1393885647002; Mon, 03 Mar 2014 14:27:27 -0800 (PST) In-Reply-To: <87siqy7whs.fsf@elektro.pacujo.net> References: <53144e8d$0$2149$426a74cc@news.free.fr> <1d1dfa1b-b715-4d8f-9c12-f0d3dc1a22c9@googlegroups.com> <85ppm3httu.fsf@benfinney.id.au> <20140303155112.46e34ff8@bigbox.christie.dr> <87siqy7whs.fsf@elektro.pacujo.net> Date: Tue, 4 Mar 2014 09:27:26 +1100 Subject: Re: Reference From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393885656 news.xs4all.nl 2944 [2001:888:2000:d::a6]:43360 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67604 On Tue, Mar 4, 2014 at 9:22 AM, Marko Rauhamaa wrote: > You generally use "==" if more than one object could be equal. If you > know there's only one object of the kind, you convey that knowledge by > the use of "is" even when functionally, it doesn't matter. It's even simpler than that. You use "==" when you care about value, and "is" when you care about identity. This is because "==" tests value, and "is" tests identity. I do not understand why there is confusion. ChrisA