Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95451
| 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 | <ian.g.kelly@gmail.com> |
| 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 | <CALvWhxtJ-WSwExfgGFQf=PphM1ryq6xqv0we+--yoFVtF0nKpw@mail.gmail.com> |
| References | <dbbdd7bd-63e7-42cb-96d5-523606380bed@googlegroups.com> <f45a1172-03e2-4bb2-8045-8252843d9cdf@googlegroups.com> <CALvWhxtJ-WSwExfgGFQf=PphM1ryq6xqv0we+--yoFVtF0nKpw@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Mon, 17 Aug 2015 17:11:43 -0600 |
| Subject | Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? |
| To | Python <python-list@python.org> |
| 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 <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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.68.1439853151.4764.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Mon, Aug 17, 2015 at 4:57 PM, Chris Kaynor <ckaynor@zindagigames.com> 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 "==".
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? alex.flint@gmail.com - 2015-08-17 15:23 -0700
Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? alex.flint@gmail.com - 2015-08-17 15:25 -0700
Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? Ian Kelly <ian.g.kelly@gmail.com> - 2015-08-17 17:11 -0600
Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? random832@fastmail.us - 2015-08-18 00:11 -0400
csiph-web