Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95449
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-08-17 15:25 -0700 |
| References | <dbbdd7bd-63e7-42cb-96d5-523606380bed@googlegroups.com> |
| Message-ID | <f45a1172-03e2-4bb2-8045-8252843d9cdf@googlegroups.com> (permalink) |
| Subject | Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)? |
| From | alex.flint@gmail.com |
On Monday, August 17, 2015 at 3:24:22 PM UTC-7, alex....@gmail.com wrote: > using Python 2.7.9, I get the following: > > >>> id(multiprocessing.Process.start) == id(multiprocessing.Process.start) > True > > But on the other hand: > > >>> multiprocessing.Process.start is multiprocessing.Process.start > False > > I thought that these two expressions were equivalent. Can somebody help me to understand what's going on here? Sorry I completely mistype that. It was supposed to read: >>> id(multiprocessing.Process.is_alive) == id(multiprocessing.Process.start) True >>> multiprocessing.Process.is_alive is multiprocessing.Process.start False
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