Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(301)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 168070043: Move loop attribute to _FlowControlMixin

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by haypo_gmail
Modified:
11 years, 2 months ago
Reviewers:
Andrew Svetlov, GvR
Visibility:
Public.
Move loop attribute to _FlowControlMixin

Patch Set 1 #

Total comments: 2
Created: 11 years, 2 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M asyncio/proactor_events.py View 1 chunk +1 line, -2 lines 0 comments Download
M asyncio/selector_events.py View 2 chunks +1 line, -2 lines 0 comments Download
M asyncio/transports.py View 1 chunk +3 lines, -1 line 2 comments Download
M asyncio/unix_events.py View 1 chunk +1 line, -2 lines 0 comments Download
M tests/test_transports.py View 1 chunk +2 lines, -1 line 0 comments Download
Total messages: 5
|
GvR
Good catch. LGTM.
11 years, 2 months ago (2014年11月03日 03:03:47 UTC) #1
Good catch. LGTM.
Sign in to reply to this message.
Andrew Svetlov
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py File asyncio/transports.py (right): https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243 asyncio/transports.py:243: assert loop is not None assert is inconsistent with ...
11 years, 2 months ago (2014年11月05日 15:39:50 UTC) #2
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py
File asyncio/transports.py (right):
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243
asyncio/transports.py:243: assert loop is not None
assert is inconsistent with ctor signature: looking on __init__ the loop
parameter has default None value.
Sign in to reply to this message.
Andrew Svetlov
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py File asyncio/transports.py (right): https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243 asyncio/transports.py:243: assert loop is not None assert is inconsistent with ...
11 years, 2 months ago (2014年11月05日 15:39:50 UTC) #3
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py
File asyncio/transports.py (right):
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243
asyncio/transports.py:243: assert loop is not None
assert is inconsistent with ctor signature: looking on __init__ the loop
parameter has default None value.
Sign in to reply to this message.
haypo_gmail
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py File asyncio/transports.py (right): https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243 asyncio/transports.py:243: assert loop is not None On 2014年11月05日 15:39:50, Andrew ...
11 years, 2 months ago (2014年11月05日 15:49:27 UTC) #4
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py
File asyncio/transports.py (right):
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243
asyncio/transports.py:243: assert loop is not None
On 2014年11月05日 15:39:50, Andrew Svetlov wrote:
> assert is inconsistent with ctor signature: looking on __init__ the loop
> parameter has default None value.
Well, that's right but I wanted to use the same prototype than other classes.
Example with Future:
 def __init__(self, *, loop=None):
Sign in to reply to this message.
Andrew Svetlov
On 2014年11月05日 15:49:27, haypo_gmail wrote: > https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py > File asyncio/transports.py (right): > > https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243 > ...
11 years, 2 months ago (2014年11月05日 16:04:56 UTC) #5
On 2014年11月05日 15:49:27, haypo_gmail wrote:
> https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py
> File asyncio/transports.py (right):
> 
>
https://codereview.appspot.com/168070043/diff/1/asyncio/transports.py#newcode243
> asyncio/transports.py:243: assert loop is not None
> On 2014年11月05日 15:39:50, Andrew Svetlov wrote:
> > assert is inconsistent with ctor signature: looking on __init__ the loop
> > parameter has default None value.
> 
> Well, that's right but I wanted to use the same prototype than other classes.
> Example with Future:
> 
> def __init__(self, *, loop=None):
Yes, Future and others can be constructed with implicit event loop.
But every transport in asyncio requires explicit pass of loop parameter.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /