Object identity has no necessary connection to memory location (was: What is a function parameter =[] for?)

Dave Farrance df at see.replyto.invalid
Thu Nov 26 06:50:15 EST 2015


Ben Finney <ben+python at benfinney.id.au> wrote:

>Dave Farrance <df at see.replyto.invalid> writes:
>
>> Marko Rauhamaa <marko at pacujo.net> wrote:
>>
>> >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".)
>> >
>> >What's a faked id?
>>
>> You can figure out what I'm getting at -- i.e. I presume that the ids
>> are not pointers to stored numbers in memory (as with CPython) but are
>> a translation of the numerical variable's value.
>
>Why refer to that as “faked”? That's what I can't figure out about what
>you're getting at. Perhaps Marko shares my uncomprehension.

Hence

https://en.wikipedia.org/wiki/Scare_quotes



More information about the Python-list mailing list