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


Groups > comp.lang.python > #39022

Re: Calendar module question

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <phil_lor@bigpond.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:question': 0.08; 'python': 0.09; 'ide': 0.09; 'interpreter,': 0.09; 'subject:module': 0.09; 'calendar': 0.16; 'trap': 0.16; 'wing': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'module': 0.19; 'import': 0.21; "i've": 0.23; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; 'module.': 0.27; 'received:10.0.0': 0.28; 'piece': 0.29; 'included': 0.29; 'this.': 0.29; 'related': 0.30; 'code': 0.31; 'problem.': 0.32; 'file': 0.32; '-----': 0.32; 'could': 0.32; 'print': 0.32; 'traceback': 0.33; 'received:10.0': 0.33; 'to:addr :python-list': 0.33; 'weeks': 0.33; 'thanks': 0.34; 'there': 0.35; 'except': 0.36; 'thank': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'your': 0.60; 'different': 0.63; 'received:61': 0.75; 'phil': 0.91; 'adventures': 0.93
X-Authentication-Info Submitted using ID phil_lor@bigpond.com
X-Authority-Analysis v=2.0 cv=IccFqBWa c=1 sm=1 a=F4EmiCWD0tqd/gkRKRISIQ==:17 a=pTzqZbqM9tkA:10 a=JDadKst33uMA:10 a=8nJEP1OIZ-IA:10 a=1IlZJK9HAAAA:8 a=e3s2Ddvnt5EA:10 a=4Mu5c4jLhJYYmwCrnKcA:9 a=wPNLvfGTeEIA:10 a=Z1BvOZmT1TIA:10 a=F4EmiCWD0tqd/gkRKRISIQ==:117
Date Sun, 17 Feb 2013 19:11:33 +1000
From Phil <phil_lor@bigpond.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: Calendar module question
References <51208B03.2070404@bigpond.com> <20130217084052.GA1099@kontrol.kode5.net>
In-Reply-To <20130217084052.GA1099@kontrol.kode5.net>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1888.1361092300.2939.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361092301 news.xs4all.nl 6845 [2001:888:2000:d::a6]:55087
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39022

Show key headers only | 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