Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95451
| 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 | 2015-08-17 17:11 -0600 |
| Subject | Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.68.1439853151.4764.python-list@python.org> (permalink) |
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