km wrote:
>> Hi all,
>> was looking at references in python...
> >>> a = 10
> >>> b = a
> >>> id(a)
> 153918788
> >>>id(b)
> 153918788
>> where a and b point to the same id. now is this id an address ?
no, it's the object identity, and all it tells you is that both names
point to the same object.
> can one dereference a value based on address alone in python?
no.
> is id similar to the address of a variable or a class ?
in the CPython implementation, it's the address where the object is
stored. but that's an implementation detail.
</F>