New submission from STINNER Victor: Attached patch refactors the asyncio.StreamReader class:
- use the value None instead of True or False to wake up the waiter - add a new _wakeup_waiter() method - replace _create_waiter() method with a _wait_for_data() coroutine function The change adds a subgenerator (_wait_for_data), is it an issue in term of performances? (I don't think so.) ---------- components: asyncio files: refactor_streamreader.patch keywords: patch messages: 233700 nosy: gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyncio: refactor StreamReader versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file37649/refactor_streamreader.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23198> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com