Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39022

Re: Calendar module question

Date 2013-02-17 19:11 +1000
From Phil <phil_lor@bigpond.com>
Subject Re: Calendar module question
References <51208B03.2070404@bigpond.com> <20130217084052.GA1099@kontrol.kode5.net>
Newsgroups comp.lang.python
Message-ID <mailman.1888.1361092300.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 17/02/13 18:40, James Griffin wrote:
> ----- Phil <phil_lor@bigpond.com> [2013-02-17 17:47:15 +1000] ----- :
>
>> Thank you for reading this.
>>
>> My adventures with Python have just begun and during the few weeks I
>> have tried many IDEs. The following piece of code fails under all
>> IDEs, and the interpreter, except under the Wing IDE.
>>
>> Why would this code work under the Wing IDE and nowhere else? Could
>> there be a different calendar module included with Wing?
>>
>> import calendar
>>
>> cal = calendar.prcal(2013)
>> print cal
>>
>> Traceback (most recent call last):
>>    File "calendar.py", line 1, in <module>
>>      import calendar
>>    File "/home/phil/calendar.py", line 3, in <module>
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> There is your problem.
>
> Parsedatetime is a good calendar module. I've been using it recently for
> an email related script.
>

Thanks James - a trap for the uninitiated.

-- 
Regards,
Phil

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Calendar module question Phil <phil_lor@bigpond.com> - 2013-02-17 19:11 +1000

csiph-web