Calendar Problem

Michał Klich klich.michal at gmail.com
Tue Nov 3 15:12:15 EST 2009


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.michal at gmail.com
michal at michalklich.com
http://www.michalklich.com



More information about the Python-list mailing list