Confused About Python's sys.maxsize
问题 So these questions came to mind because (due to adding an extra zero in a call to a power function) I learned that the python "int" type can be arbitrarily large, atleast until the interpreter runs out of memory to allocate. That prompted me to do an experiment: import sys n = 10000 print(2 ** n) print(len(str(2 ** n))) print(type(2 ** n)) print(sys.maxsize) print(len(str(sys.maxsize))) print(type(sys.maxsize)) This generates the output: