Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4530)

Issue 68800045: drain(�) is a coroutine

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by haypo_gmail
Modified:
10 years, 2 months ago
Reviewers:
GvR
Visibility:
Public.

Description

drain(�) is a coroutine

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -15 lines) Patch
M asyncio/streams.py View 1 chunk +3 lines, -15 lines 0 comments Download

Messages

Total messages: 3
GvR
Let me think about this. There was something clever about this. I think it was ...
10 years, 2 months ago (2014-02-26 00:01:08 UTC) #1
haypo_gmail
On 2014/02/26 00:01:08, GvR wrote: > Let me think about this. There was something clever ...
10 years, 2 months ago (2014-02-26 00:11:37 UTC) #2
GvR
10 years, 2 months ago (2014-02-26 00:18:04 UTC) #3
What's weird about the common case? You can just write

s.write(b'x')
yield from s.drain()

There's normally no need to check for drain()'s return value.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b