New python user seeks comments

Martijn Faassen faassen at pop.vet.uu.nl
Wed Apr 21 15:58:38 EDT 1999


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..




More information about the Python-list mailing list