While the size of int() instance is 24 bytes in both python 2 and python 3, can anyone help understand why there is this difference
Python 2.7:
import sys
sys.getsizeof(5)
Output : 24
Python 3.6:
import sys
sys.getsizeof(5)
Output : 28
While the size of int() instance is 24 bytes in both python 2 and python 3, can anyone help understand why there is this difference
Python 2.7:
import sys
sys.getsizeof(5)
Output : 24
Python 3.6:
import sys
sys.getsizeof(5)
Output : 28