importing question ?

Jonas Geiregat kemu at sdf-eu.org
Thu Nov 28 09:35:47 EST 2002


 >>> import classes
 >>> a = veryBigSnake()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
NameError: name 'veryBigSnake' is not defined
 >>> from classes import *
 >>> a = veryBigSnake()

why doesn't the first import work ?
and the second does

and what is the difference between those two ?




More information about the Python-list mailing list