Message180988
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. |
|
Date |
User |
Action |
Args |
2013-01-30 19:18:58 | r.david.murray | set | recipients:
+ r.david.murray, susurrus |
2013-01-30 19:18:58 | r.david.murray | set | messageid: <1359573538.17.0.175591200821.issue17083@psf.upfronthosting.co.za> |
2013-01-30 19:18:58 | r.david.murray | link | issue17083 messages |
2013-01-30 19:18:57 | r.david.murray | create | |
|