from calendar import* doesn't import everything

Rotwang sg552 at hotmail.co.uk
Tue Apr 24 19:18:43 EDT 2012


Sorry if this is a stupid question, but what is up with this:

 >>> from calendar import*
 >>> Calendar

Traceback (most recent call last):
   File "<pyshell#9>", line 1, in <module>
     Calendar
NameError: name 'Calendar' is not defined
 >>> from calendar import Calendar
 >>> Calendar
<class 'calendar.Calendar'>

?

-- 
Hate music? Then you'll hate this:

http://tinyurl.com/psymix



More information about the Python-list mailing list