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
Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close() #80983
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-05-24.14:18:08.451>created_at=<Date2019-05-05.14:10:52.018>labels= ['3.8', 'expert-asyncio']
title='Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()'updated_at=<Date2019-05-24.14:18:08.450>user='https://github.com/asvetlov'
New changeset a076e4f by Andrew Svetlov in branch 'master': bpo-36802: Drop awrite()/aclose(), support await write() and await close() instead (bpo-13099) a076e4f
Activity
asvetlov commentedon May 5, 2019
Yuri and I decided that
writer.awrite()andwriter.aclose()look ugly.Instead, we return awaitable object from these methods to allow both
writer.write(b'data')andawait writer.write(b'data')for the method.The same for
writer.close()call.asvetlov commentedon May 9, 2019
New changeset a076e4f by Andrew Svetlov in branch 'master':
bpo-36802: Drop awrite()/aclose(), support await write() and await close() instead (bpo-13099)
a076e4f
vstinner commentedon May 14, 2019
It seems like the commit a076e4f introduced a regression: bpo-36870, test_drain_raises() of test_asyncio started to fail randomly, mostly on Windows. bpo-36870 is making AppVeyor failing on pull requests and make Windows buildbots fail randomly. I wrote PR 13316 to revert the commit to get more time to find a proper fix.
https://pythondev.readthedocs.io/ci.html#revert-on-fail