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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'attribute': 0.05; 'subject:question': 0.08; 'python': 0.09; 'ide': 0.09; 'interpreter,': 0.09; 'subject:module': 0.09; 'calendar': 0.16; 'wing': 0.16; 'module': 0.19; 'import': 0.21; 'tried': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; 'received:10.0.0': 0.28; 'piece': 0.29; 'included': 0.29; 'this.': 0.29; 'code': 0.31; 'file': 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; 'there': 0.35; 'except': 0.36; 'thank': 0.36; 'why': 0.37; 'object': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; '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=G7ae4qY5 c=1 sm=1 a=F4EmiCWD0tqd/gkRKRISIQ==:17 a=pTzqZbqM9tkA:10 a=JDadKst33uMA:10 a=8nJEP1OIZ-IA:10 a=1IlZJK9HAAAA:8 a=ek0t_0ag-ZAA:10 a=msBw8ch3Pyjw-8ugh2wA:9 a=wPNLvfGTeEIA:10 a=F4EmiCWD0tqd/gkRKRISIQ==:117 Date: Sun, 17 Feb 2013 17:47:15 +1000 From: Phil 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: Calendar module question 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361087247 news.xs4all.nl 6984 [2001:888:2000:d::a6]:56374 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39016 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 import calendar File "/home/phil/calendar.py", line 3, in cal = calendar.prcal(2013) AttributeError: 'module' object has no attribute 'prcal' -- Regards, Phil