Scenarios
Sometimes you need to initialize some variables, let denote the largest possible value or a small value as possible.
python2
import sys
max_value = sys.maxint
min_value = -sys.maxint - 1
python3
sys.maxint
Constant start deleting from Python 3.0, but the use of sys.maxsize
import sys
max_value = sys.maxsize
min_value = -sys.maxsize - 1
py2 and py3 common
max_value = float('inf')
min_value = float('-inf')
reference
stackoverflow.com/questions/7604966/maximum-and-minimum-values-for-ints