You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
remove unnecesary .flush() calls in the asyncio subprocess code example #65684
Activity
4kir4 commentedon May 12, 2014
The current code example contains [1]:
that looks bizarre.
Either a comment should be added that explains why the
.flush()callsare necessary or they should be removed.
I've attached the documentation patch that removes the calls.
[1] http://hg.python.org/cpython/file/2af5a52b9b87/Doc/library/asyncio-subprocess.rst#l227
python-dev commentedon May 12, 2014
New changeset c0404f0da01a by Victor Stinner in branch '3.4':
Issue bpo-21485: remove unnecesary .flush() calls in the asyncio subprocess code
http://hg.python.org/cpython/rev/c0404f0da01a
New changeset 3c26389d741c by Victor Stinner in branch 'default':
(Merge 3.4) Issue bpo-21485: remove unnecesary .flush() calls in the asyncio
http://hg.python.org/cpython/rev/3c26389d741c
vstinner commentedon May 12, 2014
I wrote the example and the first call to buffer.flush() is a mistake. Thanks for your patch, I applied it.