Nick Coghlan <[email protected]> added the comment: Alternatively, perhaps it would make sense to have a "reopen()" method on file objects that covers the necessary dance to reopen with the correct flags?
That would solve more problems than just this one (possibly including making it possible to "reopen" StringIO and BytesIO objects). ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue14243> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
