int
and long
were "unified" a few versions back. Before that it was possible to overflow an int through math ops.
3.x has further advanced this by eliminating long altogether and only having int.
sys.maxint
contains the maximum value a Python int can hold.
sys.getsizeof()
.sys.maxsize
contains the maximum size in bytes a Python int can be.
sys.maxsize
.