26 lines
693 B
Plaintext
26 lines
693 B
Plaintext
From: faassen at pop.vet.uu.nl (Martijn Faassen)
|
|
Date: Wed, 21 Apr 1999 21:58:38 +0200
|
|
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>
|
|
Message-ID: <371E2DEE.C2BD5A58@pop.vet.uu.nl>
|
|
X-UID: 1215
|
|
|
|
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..
|
|
|
|
|
|
|
|
|