why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

alex.flint at gmail.com alex.flint at gmail.com
Tue Aug 18 00:25:39 CEST 2015


On Monday, August 17, 2015 at 3:24:22 PM UTC-7, alex.... at 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



More information about the Python-list mailing list