I'm trying to run the following code with Python 3.7:
import sys
print(sys.maxint)
but I get an error:
D:\Python3.7\python.exe "D:/PyCharm 2017.2.3/Workplace/maximizer.py"
Traceback (most recent call last):
File "D:/PyCharm 2017.2.3/Workplace/maximizer.py", line 2, in <module>
print(sys.maxint)
AttributeError: module 'sys' has no attribute 'maxint'
How do I fix it?
maxint
attribute of thesys
module, butsys
doesn't have an attribute namedmaxint
. Maybe you meantsys.maxsize
? – Subcontract