Object identity has no necessary connection to memory location
Mark Lawrence
breamoreboy at yahoo.co.uk
Thu Nov 26 16:44:41 EST 2015
On 26/11/2015 20:00, Ben Finney wrote:
> Dave Farrance <df at see.replyto.invalid> writes:
>
>>>>> Dave Farrance <df at see.replyto.invalid>:
>>>>>
>>>>>> (Conversely, I see that unlike CPython, all PyPy's numbers have
>>>>>> unchanging ids, even after exiting PyPy and restarting, so it seems
>>>>>> that PyPy's numerical ids are "faked".)
>>
>> Hence
>>
>> https://en.wikipedia.org/wiki/Scare_quotes
>
> I saw the scare quotes. They still communicate your position that object
> identity “should” be reliably connected to the object's memory location.
>
> Either you don't hold that position, in which case your original
> statement was as ambiguous as this most recent one you wrote; or you do
> hold that position, and my response stands.
>
It still fascinates me that after roughly 15 years using Python I've
never considered using object identity, let alone actually done so.
What, if anything, have I missed out on?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-list
mailing list