[issue32395] asyncio.StreamReader.readuntil is not general enough
Andrew Svetlov
report at bugs.python.org
Thu Dec 21 01:06:37 EST 2017
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Support multiple separators looks easy, I don't expect any performance impact.
Like we already have it for strings: s.startswith(('\n', '\r'))
Regexps are more expensive thing, callbacks are kind of evil.
Let's add a patch for multiple separators first, maybe it covers 99.9% use cases.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32395>
_______________________________________
More information about the Python-bugs-list
mailing list