I'm an idiot

Sean 'Shaleh' Perry shalehperry at attbi.com
Fri Jun 28 22:57:50 EDT 2002


> 
> Many people would rely on Python's automatic file closing behaviour
> and write it like this:
> 
>    g = open('c:/temp/temp1.txt', 'w')
>    for line in open('c:/temp/temp.txt'):
>        g.write(line.strip())
> 

no, we wouldn't.





More information about the Python-list mailing list