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 r.david.murray
Recipients r.david.murray, susurrus
Date 2013-01-30.19:18:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359573538.17.0.175591200821.issue17083@psf.upfronthosting.co.za>
In-reply-to
Content
If you are reading in binary mode, then all readline does is get you the next \n terminated chunk of data, which is a convenience in some circumstances.  You have to do all the newline handling yourself.  Otherwise it isn't a binary read.

I think the "right way" to do what you want is to write a custom subclass of one of the IO classes.  Should such a subclass be added to Python?  That's an interesting question.  A first step toward an answer might be to post it as a recipe on the ActiveState site and see how many people find it useful.
History
Date User Action Args
2013-01-30 19:18:58r.david.murraysetrecipients: + r.david.murray, susurrus
2013-01-30 19:18:58r.david.murraysetmessageid: <1359573538.17.0.175591200821.issue17083@psf.upfronthosting.co.za>
2013-01-30 19:18:58r.david.murraylinkissue17083 messages
2013-01-30 19:18:57r.david.murraycreate