35 lines
996 B
Plaintext
35 lines
996 B
Plaintext
From: chadm at sgi.com (Chad McDaniel)
|
|
Date: 22 Apr 1999 10:24:48 -0700
|
|
Subject: New python user seeks comments
|
|
References: <m3wvz61tkp.fsf@solo.david-steuber.com> <371DA955.9F13B144@pop.vet.uu.nl> <x1jlnflztfl.fsf@unhinged.engr.sgi.com> <371E2DEE.C2BD5A58@pop.vet.uu.nl>
|
|
Message-ID: <x1jd80wzhy7.fsf@unhinged.engr.sgi.com>
|
|
X-UID: 236
|
|
|
|
Martijn Faassen <faassen at pop.vet.uu.nl> writes:
|
|
|
|
> Chad McDaniel wrote:
|
|
>
|
|
> ['in' is a reserved word so can't be used as a variable name]
|
|
>
|
|
> > It seems that Python could have mentioned that to the user.
|
|
>
|
|
> True, though it does say this:
|
|
>
|
|
> File "<stdin>", line 2
|
|
> in = open("test.txt", "r")
|
|
> ^
|
|
> SyntaxError: invalid syntax
|
|
>
|
|
> Could be better, but easily could've been far worse..
|
|
|
|
I used Perl (and still do) before Python and I think that the Perl
|
|
interpreter gives exceptionally informative error messages. Of course,
|
|
with Perl's syntax, that may be a necessity ;->
|
|
|
|
--
|
|
-chad
|
|
|
|
|
|
|
|
|