Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106434
| Path | csiph.com!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | animalize <animalize81@hotmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Collection: weak error prompt drives beginner crazy |
| Date | Mon, 4 Apr 2016 19:24:49 +0800 |
| Lines | 24 |
| Message-ID | <mailman.12.1459769484.32530.python-list@python.org> (permalink) |
| References | <BLU436-SMTP189131DC7B039D2FC5B84F8B69D0@phx.gbl> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8"; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de iPtjLFp/EYtIkjSRouopbQWFr/HxtaS8E2tT0lvBua0Q== |
| Return-Path | <animalize81@hotmail.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; 'lines:': 0.09; 'python': 0.10; 'subject:error': 0.11; 'output': 0.13; 'importing': 0.15; 'received:65.55.116.7': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:beginner': 0.16; 'attribute': 0.18; 'import': 0.24; '(most': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'installed': 0.26; 'itself,': 0.29; "i'm": 0.30; 'e.g.': 0.30; 'says': 0.32; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'library.': 0.35; 'problem.': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'rather': 0.39; 'to:addr:python.org': 0.40; 'hour': 0.69; 'prompt': 0.79 |
| X-TMN | [9MFJxWnYv+boRfMvSikUwCs4xVhxlr36] |
| X-Originating-Email | [animalize81@hotmail.com] |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 |
| X-OriginalArrivalTime | 04 Apr 2016 11:26:13.0445 (UTC) FILETIME=[CB9DDF50:01D18E64] |
| X-Mailman-Approved-At | Mon, 04 Apr 2016 07:31:22 -0400 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <BLU436-SMTP189131DC7B039D2FC5B84F8B69D0@phx.gbl> |
| Xref | csiph.com comp.lang.python:106434 |
Show key headers only | View raw
An example, the file-name is conflict with library-name in stdlib or
installed library.
There is a file uuid.py that only has two lines:
import uuid
print(uuid.uuid4())
Run uuid.py, output on Python 3.5.1:
Traceback (most recent call last):
File "D:\uuid.py", line 1, in <module>
import uuid
File "D:\uuid.py", line 3, in <module>
print(uuid.uuid4())
AttributeError: module 'uuid' has no attribute 'uuid4'
I was spending about an hour to find out what happend when I was a
beginner, and I found I'm not the only one who confused by this problem.
If the prompt can be beginner-friendly a little bit, I think it's a very
good thing.
E.g. says you are importing the file itself, rather than importing other
file or library.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Collection: weak error prompt drives beginner crazy animalize <animalize81@hotmail.com> - 2016-04-04 19:24 +0800 Re: Collection: weak error prompt drives beginner crazy Ned Batchelder <ned@nedbatchelder.com> - 2016-04-04 07:48 -0700
csiph-web