> So another "idiom": code review!
Or what about
with open('mlccal.dat', 'r') as f:
content = f.readlines()
>> From The Zen of Python
>> Beautiful is better than ugly.
Agreed "with" is not ugly, not sure I would call it Beautiful….. maybe.
>>Explicit is better than implicit.
Not sure "with" really is telling me that it will close out the FD when
leaving……. but Zen rules can be broken some days.
>>Simple is better than complex.
But it sure is simpler than the classic mode of opening and closing a document.
So on a scale of 10, I would give "with" a solid 7.
-Kevin