In article <[email protected]>,
Michael Speer <[email protected]> wrote:
> By his reasoning it simply shouldn't exist. Instead you would access the
> information only like this:
>
> with open("myfile.dat") as f:
> data = f.read()
The problem with things like file objects is they model external
real-world entities, which have externally-imposed real-world behaviors.
f.close() can fail, most commonly because some buffered output couldn't
be written when being flushed as part of the close(). Sometimes it's
important to find out about that.
--
http://mail.python.org/mailman/listinfo/python-list