When you call the object.__repr__()
method in Python you get something like this back:
<__main__.Test object at 0x2aba1c0cf890>
Is there any way to get a hold of the memory address if you overload __repr__()
, other then calling super(Class, obj).__repr__()
and regexing it out?