R. David Murray <rdmur...@bitdance.com> added the comment: There is no underlying file object. I presume you mean the reader/writer object? Which have no close method, so there is no point in making them a context manager. There is zero benefit and positive cost (an additional nesting level). Just use with to open the file you then wrap in a reader/writer instance.
---------- nosy: +r.david.murray resolution: -> rejected stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11115> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com