[New-bugs-announce] [issue23198] asyncio: refactor StreamReader

STINNER Victor report at bugs.python.org
Fri Jan 9 01:41:19 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23198>
_______________________________________


More information about the New-bugs-announce mailing list