title: python AttributeError: 'module' object has no attribute 'monthcalendar'
body: <p>Here is the code i'm a trying. But Idle gives an Attribute Error. Although calendar is a module in python standard library.</p>
  
  <blockquote>
    <p>AttributeError: 'module' object has no attribute 'monthcalendar'</p>
  </blockquote>
  
  <p>The Code:</p>
  
  <pre><code>def main():
     today = datetime.datetime.date(datetime.datetime.now())
     current = re.split('-', str(today))
     current_no = int(current[1])
     current_month = year[current_no-1]
     current_day = int(re.sub('\A0', '', current[2]))
     current_yr = int(current[0])
  
     print '&lt;h1&gt; %s %s &lt;/h1 &gt;' %(current_month, current_yr)
  
     month = calendar.monthcalendar(current_yr, current_no) 
  </code></pre>