Reference
Chris Angelico
rosuav at gmail.com
Wed Mar 5 01:32:57 EST 2014
On Wed, Mar 5, 2014 at 5:03 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> I can say "'id' is just 'machine-id' is just address at some low level"
And I can say that "id" returns a list of digits, but that doesn't
make either statement true.
The id() function returns a number which (a) never changes for any
given object, and (b) will never be the same for any two
concurrently-existing objects. It's a proxy for object identity.
That's all.
ChrisA
More information about the Python-list
mailing list