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


Groups > comp.lang.python > #39016 > unrolled thread

Calendar module question

Started byPhil <phil_lor@bigpond.com>
First post2013-02-17 17:47 +1000
Last post2013-02-17 17:47 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#39016 — Calendar module question

FromPhil <phil_lor@bigpond.com>
Date2013-02-17 17:47 +1000
SubjectCalendar module question
Message-ID<mailman.1883.1361087247.2939.python-list@python.org>
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>
     cal = calendar.prcal(2013)
AttributeError: 'module' object has no attribute 'prcal'

-- 
Regards,
Phil

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web