This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author madison.may
Recipients madison.may, nadeem.vawda, nbargnesi, serhiy.storchaka
Date 2013-07-11.20:09:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373573392.84.0.960471411479.issue18430@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2013-07-11 20:09:52madison.maysetrecipients: + madison.may, nadeem.vawda, serhiy.storchaka, nbargnesi
2013-07-11 20:09:52madison.maysetmessageid: <1373573392.84.0.960471411479.issue18430@psf.upfronthosting.co.za>
2013-07-11 20:09:52madison.maylinkissue18430 messages
2013-07-11 20:09:52madison.maycreate