Calendar Stuff

Victor Subervi victorsubervi at gmail.com
Tue Nov 10 12:53:03 EST 2009


Hi;
I have the following code:

import calendar, datetime

def cal():
  ...
  myCal = calendar.Calendar(calendar.SUNDAY)
  today = datetime.date.today()
  day = today.day
  mo = today.month
  yr = today.year
#  month = myCal.monthdayscalendar(int(time.strftime("%Y"))
  month = myCal.monthdayscalendar(yr, mo)
  print 'hi'

html headers are included. No matter which one of the last two lines I
comment out, I never get to the point of printing 'hi'. (If I comment them
both out, it does print.) What do?
TIA,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091110/24336634/attachment.html>


More information about the Python-list mailing list