(slightly OT): Python and linux - very cool

Peter Hansen peter at engcorp.com
Thu Aug 8 13:49:26 CEST 2002


hash wrote:
> 
> Emile van Sebille wrote:
> 
> >for line in open(r'c:\bootlog.txt'): print line
> >
> 
> >> for line in open("read.py"):
> ...     print line
> ...
> Traceback (innermost last):
> File "<stdin>",line 1, in ?
> TypeError: loop over non-sequence
> 
> This is (outdated) python 1.5.2

"Doctor, it hurts when I run an old version that doesn't have
the new features I want to use."

-Peter



More information about the Python-list mailing list