New python user seeks comments

Chad McDaniel chadm at sgi.com
Wed Apr 21 15:04:30 EDT 1999


Martijn Faassen <faassen at pop.vet.uu.nl> writes:

> David Steuber wrote:
> > 
> > Er, uh, hmm.
> > 
> > I wrote my first Python program today.  It took longer than I
> > expected.  Who would have guessed that you couldn't give a file object
> > the name 'in'?  Or at least that was one of the weirder obstacles.
> 
> It's not that weird as 'in' is a reserved keyword in Python. :)
> 
> for i in whatever:
>    print "See?"
> 

It seems that Python could have mentioned that to the user.

-- 
-chad




More information about the Python-list mailing list