Python's id()
returns the identity of an object as an integer.
Is there a Python function that does the compliment of that? That is, a function X()
such that:
class ABC(object): pass
a = ABC()
b = X(id(a))
assert b is a
Python's id()
returns the identity of an object as an integer.
Is there a Python function that does the compliment of that? That is, a function X()
such that:
class ABC(object): pass
a = ABC()
b = X(id(a))
assert b is a