On 02/10/2012 17:55, Katya Stolpovskaya wrote:
Hi all,
I have this error:
from sys import *
maxint
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
maxint
NameError: name 'maxint' is not defined
What does it mean and how to deal with it?
Thank you in advance,
Katya
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
It means exactly what it says. Your version of Python doesn't have
maxint defined in the built-in sys module. I'd hazard a guess that
you're using a Python 3 version in which case you have maxsize defined
instead of maxint.
As a slight aside, using the import that way is usually considered bad
style.
--
Cheers.
Mark Lawrence.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor