sys.maxint in Python

sys.maxint is the maximum value for the int variable in Python 2.

Python 3 doesn’t use this property because the int type in Python 3 has no limit. For Python 3, you can use sys.maxsize to check the maximum size lists, strings, dicts, and many other containers can have.

Continue reading