Madison May added the comment: Why would something like the following work?
#At the beginning of peek() #keep track of prior offset position = self.fileobj.tell() #immediately before return statement #restore previous fileobj offset self.fileobj.seek(position) ---------- nosy: +madison.may _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18430> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com