Message255488
In Python3.5 asyncio.StreamReader.readline() can separate lines only by b'\n'. For some task, I want actually "read until separator", where separator is another byte.
Since I cannot create pull-request, I will write just here what I want:
@coroutine
def readline(self, separator=b'\n'):
if not isinstance(separator, bytes) or len(separator) != 1:
raise ValueError(separator)
....
ichar = self._buffer.find(separator)
.... |
|
| Date |
User |
Action |
Args |
| 2015-11-27 21:26:38 | socketpair | set | recipients:
+ socketpair, gvanrossum, vstinner, yselivanov |
| 2015-11-27 21:26:38 | socketpair | set | messageid: <1448659598.46.0.288346349625.issue25752@psf.upfronthosting.co.za> |
| 2015-11-27 21:26:38 | socketpair | link | issue25752 messages |
| 2015-11-27 21:26:38 | socketpair | create | |
|