Allowing ref counting to close file items bad style?

Dan bounces at foo.org
Tue Aug 29 23:59:43 EDT 2006


Paul Rubin wrote:
> Dan <bounces at foo.org> writes:
>> Is this discouraged?:
>>
>>      for line in open(filename):
>>          <do something with line>
> 
> Yes.

Well, not what I wanted to hear, but what I expected.

Thanks,
Dan

-- 
dedded att verizon dott net



More information about the Python-list mailing list