What is the reason of following behavior of python:
p=89
x=89
print(p.__repr__,x.__repr__)
ans=<method-wrapper '__repr__' of int object at 0x00000000623E78E0> <method-wrapper '__repr__' of int object at 0x00000000623E78E0>
Here repr returns same location. I have read online that python tags values (unlike C and Java it does not assign value to variable but assign variable to value.)
But it gives different location for following code:
p=898
x=898
print(p.__repr__,x.__repr__)
here it gives result as
<method-wrapper '__repr__' of int object at 0x0000000005E8D370> <method-wrapper '__repr__' of int object at 0x0000000005E8D530>
What is the reason for this strange behaviour?