[New-bugs-announce] [issue37141] Allow multiple separators in StreamReader.readuntil

Bruce Merry report at bugs.python.org
Mon Jun 3 05:32:30 EDT 2019


New submission from Bruce Merry <bmerry at gmail.com>:

Text-based protocols sometimes allow a choice of newline separator - I work with one that allows either \r or \n. Unfortunately that doesn't work with StreamReader.readuntil, which only accepts a single separator, so I've had to do some hacky things to obtain lines without having to 

>From discussion in issue 32052, it sounded like extending StreamReader.readuntil to support a tuple of separators would be feasible.

----------
components: asyncio
messages: 344397
nosy: asvetlov, bmerry, yselivanov
priority: normal
severity: normal
status: open
title: Allow multiple separators in StreamReader.readuntil
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37141>
_______________________________________


More information about the New-bugs-announce mailing list