Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.03; 'caveat': 0.09; 'objects.': 0.09; 'subject:why': 0.09; 'instead.': 0.15; '"is"': 0.16; 'agree.': 0.16; 'distinction': 0.16; 'subject:)?': 0.16; 'wrote:': 0.16; '2015': 0.20; 'aug': 0.20; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; 'chris': 0.26; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'rules': 0.31; 'useful': 0.33; 'received:google.com': 0.35; 'should': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'doing': 0.38; 'anything': 0.38; 'to:addr:python.org': 0.40; 'between': 0.65; 'guaranteed': 0.67; 'to:name:python': 0.84; 'prone': 0.91 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=zETpAAnEzm8vt10yPfYvhM3omyhT6mrLO7SzQh1TI48=; b=eqcNiMtKkqWhsdhvUsJoxX5ROtuTypQ+3XvrvvgxpEWo3U5R/HCUndDU7pwOFPQi6G vXS/rHYEuepQVjNJa5sP2D588zLXb8mquo7JlnjnsBzd7OLMDEaiavkImvQ53qSCWske M9dYVRUVcNoFS3FnHRKH95Dhj38NoPXoqPyvcDdzPcxUNno+yJlZpnh/KzqcgdhECUTU kjESz5+wyk5N3BoJq2uZwuBFe77DR8L4e4a1x+EYvvXy32CIxpWlslnhaKpN5s50qOBQ 1CG8mjGGqtvFTR9PMkuULVzLjfPUXySY8SVjvY2IuQ/yqfnZTmCEmcUYSW3p5czI7Cwu IxtA== X-Received: by 10.50.111.164 with SMTP id ij4mr18082670igb.70.1439853142868; Mon, 17 Aug 2015 16:12:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Mon, 17 Aug 2015 17:11:43 -0600 Subject: Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1439853151 news.xs4all.nl 26645 [2001:888:2000:d::a6]:32895 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95451 On Mon, Aug 17, 2015 at 4:57 PM, Chris Kaynor wrote: > The rules for the id is that they are only guaranteed unique during the > lifespan of both objects. Also, generally, you do not want to use id or is > for much of anything unless you really know what you are doing - generally, > you just want == instead. In the case of "is", I don't agree. "is" is a useful operator and is not prone to user error like "id". The only caveat is that one should understand the distinction between "is" and "==".