Reference

Marko Rauhamaa marko at pacujo.net
Wed Mar 5 16:50:26 EST 2014


Chris Angelico <rosuav at gmail.com>:

> On Thu, Mar 6, 2014 at 8:14 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> When I talk about an object's memory address, I'm not referring to
>> what might be revealed by gdb, for example. That is, I'm not talking
>> about the process's virtual address space, nor am I talking about the
>> physical address on the address bus. I can simply define that the
>> object's memory address is whatever id() returns.
>
> Where's the complaints about circularity now? You're saying "But of
> course id() returns the address, as long as we define the address as
> 'whatever id() returns'.". Unimpeachably logical and utterly
> unhelpful.

Main thing, no harm done.

The memory address is neither right nor wrong. It's completely
irrelevant since it doesn't occupy a place in Python's data model.


Marko



More information about the Python-list mailing list