Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - Re: Calendar Problem

 
Thread Tools Search this Thread
Old 11-03-2009, 08:12 PM   #1
Default Re: Calendar Problem


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



http://www.michalklich.com


MichaƂ Klich
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange XP problem Calvin Crumrine Computer Information 2 07-18-2004 03:59 AM
Ron Chiplin Allied Bakeries Cardiff. Project ronald.chiplin Computer Support 11 06-10-2004 02:12 AM
Freezing Problem - Memory Vincent Wonnacott Computer Support 1 05-19-2004 05:35 AM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46