On 8/19/2014 3:05 PM, Mark Lawrence wrote:
On 19/08/2014 19:26, Steven D'Aprano wrote:
Marko Rauhamaa wrote:
CPython implementation detail: This is the address of the object
in memory.
I really wish CPython didn't do that, or at least not admit to it. It
does
nothing but confuse people.
I agree and would happily support your issue on the bug tracker to get
it deleted from the docs :)
It was added to the docs because people noticed that CPython ids looked
like addresses and assumed incorrectly that this is a language property.
In other words, the point is not to say that CPython uses addresses -
people already know or discover that, but to say that the addresses are
*only* implementation detail.
That said, I agree that it unfortunately *does* unnecessarily inform
people who do not know that and probably confuses some who do not
understand why they are being told something they don't need to know. We
could discuss alternatives here.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list