New python user seeks comments
Chad McDaniel
chadm at sgi.com
Thu Apr 22 13:24:48 EDT 1999
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
More information about the Python-list
mailing list