Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39021 > unrolled thread
| Started by | James Griffin <jmz.griffin@kode5.net> |
|---|---|
| First post | 2013-02-17 08:40 +0000 |
| Last post | 2013-02-17 08:40 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Calendar module question James Griffin <jmz.griffin@kode5.net> - 2013-02-17 08:40 +0000
| From | James Griffin <jmz.griffin@kode5.net> |
|---|---|
| Date | 2013-02-17 08:40 +0000 |
| Subject | Re: Calendar module question |
| Message-ID | <mailman.1887.1361091574.2939.python-list@python.org> |
----- 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.
--
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Back to top | Article view | comp.lang.python
csiph-web