[Python-ideas] for line in input with open(path) as input...

Serhiy Storchaka storchaka at gmail.com
Sat Feb 2 14:50:27 CET 2013


On 02.02.13 15:01, Chris Angelico wrote:
> I think the utility function iterwith() is a good - and probably the
> best - method; it demands nothing special from the language, and works
> quite happily.

When should iterwith() call __exit__()?





More information about the Python-ideas mailing list