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 socketpair
Recipients gvanrossum, socketpair, vstinner, yselivanov
Date 2015-11-27.21:26:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448659598.46.0.288346349625.issue25752@psf.upfronthosting.co.za>
In-reply-to
Content
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)
    ....
History
Date User Action Args
2015-11-27 21:26:38socketpairsetrecipients: + socketpair, gvanrossum, vstinner, yselivanov
2015-11-27 21:26:38socketpairsetmessageid: <1448659598.46.0.288346349625.issue25752@psf.upfronthosting.co.za>
2015-11-27 21:26:38socketpairlinkissue25752 messages
2015-11-27 21:26:38socketpaircreate