Next / Previous / Contents / TCC Help System / NM Tech homepage

21.11. id(): Unique identifier

This function, given any Python value, returns an integer value that uniquely identifies it. In most implementations, it is the value's physical memory address.

>>> i = 20
>>> id(i)
137727456