Table of Contents
Using sys Module
Maxint is supported in Python version 2 only because this constant has been removed in Python 3.
In Python version 3, a similar constant was introduced, sys.maxsize that returns the highest possible integer that is maximum size.
First, we have to import sys module; this module accesses the variables that the interpreter maintains. It carries out manipulations in the runtime environment.
import sys print( sys.maxsize )
This tutorial has cleared how to get the maximum integer value in Python 3. However, there is no concept of max integer size in version 3 of Python. I hope the example helped in understanding the concept.