Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39017
| 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 | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'attribute': 0.05; 'cpython': 0.05; 'subject:question': 0.08; 'ide': 0.09; 'imported': 0.09; 'subject:module': 0.09; 'calendar': 0.16; 'stdlib.': 0.16; 'wing': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'module': 0.19; 'import': 0.21; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; 'included': 0.29; 'code': 0.31; 'file': 0.32; 'could': 0.32; 'print': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:192.168.0': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'message-id:@gmail.com': 0.36; 'being': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'your': 0.60; "you'll": 0.62; 'skip:6 10': 0.63; 'different': 0.63; 'home': 0.66; 'phil': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=smqEbPYbZFplpo3w89VRWJvNyX6lg73xnntgEkgBzXI=; b=HjDCdNU37nyVnlB232dndyqD1QgvSXg6wNKMXfXLR30qp6JapV5EeweZX5puAR0umm N+tOwwB5uXF8EPB+jjF3RgMn7zxCEkZDlo617oFQ/SjLz9tkSMN77eYOtuXpvZv4VV8u AH/c7xNa98DgyqUO8T1IS4UKQeYyaDQDDThDVAewtt7NNImpIN+WXlDl7MvIe+Y415JF TkMJsCIE31erbdJL96iQZoQvAdVylfa82UfdV+yGy5vxHABd5TjizQobXUF8ZBJZDvaF TmLfPT2eLRCxq27eun6+f5FxeqFjH1bv/gbh0HLgC278oHtlx8DoWgvDoGssUyTfVIVZ kJlA== |
| X-Received | by 10.236.157.8 with SMTP id n8mr11123952yhk.76.1361088073803; Sun, 17 Feb 2013 00:01:13 -0800 (PST) |
| Date | Sun, 17 Feb 2013 02:01:11 -0600 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Calendar module question |
| References | <51208B03.2070404@bigpond.com> |
| In-Reply-To | <51208B03.2070404@bigpond.com> |
| X-Enigmail-Version | 1.5 |
| Content-Type | text/plain; charset=UTF-8 |
| 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.1884.1361089729.2939.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361089729 news.xs4all.nl 6961 [2001:888:2000:d::a6]:36714 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39017 |
Show key headers only | View raw
On 2013.02.17 01:47, Phil wrote: > 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' > If you look at the traceback, you'll see you have a calendar.py in your home directory that is being imported instead of the one from the stdlib. -- CPython 3.3.0 | Windows NT 6.2.9200.16496 / FreeBSD 9.1-RELEASE
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Calendar module question Andrew Berg <bahamutzero8825@gmail.com> - 2013-02-17 02:01 -0600
csiph-web