Dnia wtorek 03 listopada 2009 o 20:50:10 Victor Subervi napisał(a): > Hi; > I have the following: > > import calendar, datetime > > myCal = calendar.calendar(6) > today = datetime.date.today() > day = today.day > mo = today.month > yr = today.year > month = myCal.monthdayscalendar(yr, mo) > > The last line throws errors no matter how I try and tweak it. The current > incarnation complains about myCal being a string. What do? > TIA, > Victor >
You should use myCal = calendar.Calendar(6) This creates calendar.Calendar object. -- Michał Klich klich.mic...@gmail.com mic...@michalklich.com http://www.michalklich.com -- http://mail.python.org/mailman/listinfo/python-list