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

Issue 108910043: Better representation of Handle and Task

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

Description

Better representation of Handle and Task

Patch Set 1 #

Total comments: 7

Patch Set 2 : now also support partial, partialmethod and decorators #

Total comments: 5

Patch Set 3 : use getatr() instead of inspect.isfunction #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -31 lines) Patch
M asyncio/events.py View 1 2 2 chunks +29 lines, -1 line 2 comments Download
M asyncio/tasks.py View 1 chunk +9 lines, -1 line 0 comments Download
M asyncio/test_utils.py View 1 1 chunk +7 lines, -0 lines 0 comments Download
M tests/test_events.py View 1 3 chunks +57 lines, -21 lines 0 comments Download
M tests/test_tasks.py View 1 2 chunks +21 lines, -8 lines 0 comments Download

Messages

Total messages: 10
yselivanov
besides few nits the patch looks good. https://codereview.appspot.com/108910043/diff/1/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/1/asyncio/events.py#newcode30 asyncio/events.py:30: if inspect.isfunction(self._callback): ...
9 years, 10 months ago (2014-06-12 02:01:16 UTC) #1
haypo_gmail
https://codereview.appspot.com/108910043/diff/1/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/1/asyncio/events.py#newcode30 asyncio/events.py:30: if inspect.isfunction(self._callback): On 2014/06/12 02:01:16, yselivanov wrote: > what ...
9 years, 10 months ago (2014-06-12 08:49:44 UTC) #2
yselivanov
https://codereview.appspot.com/108910043/diff/1/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/1/asyncio/events.py#newcode30 asyncio/events.py:30: if inspect.isfunction(self._callback): On 2014/06/12 08:49:43, haypo_gmail wrote: > On ...
9 years, 10 months ago (2014-06-12 14:24:35 UTC) #3
yselivanov
https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py#newcode24 asyncio/events.py:24: elif hasattr(func, '__wrapped__'): It's a bit more complicated -- ...
9 years, 10 months ago (2014-06-12 14:29:09 UTC) #4
haypo_gmail
https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py#newcode24 asyncio/events.py:24: elif hasattr(func, '__wrapped__'): On 2014/06/12 14:29:08, yselivanov wrote: > ...
9 years, 10 months ago (2014-06-12 15:22:50 UTC) #5
haypo_gmail
https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py#newcode49 asyncio/events.py:49: if inspect.isfunction(self._callback): The code is different from the change ...
9 years, 10 months ago (2014-06-12 15:24:54 UTC) #6
yselivanov
https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/20001/asyncio/events.py#newcode24 asyncio/events.py:24: elif hasattr(func, '__wrapped__'): Oh.. I've always assumed it created ...
9 years, 10 months ago (2014-06-12 15:29:18 UTC) #7
haypo_gmail
On 2014/06/12 15:29:18, yselivanov wrote: > > @Yury: Would you prefer something like that? > ...
9 years, 10 months ago (2014-06-12 16:10:49 UTC) #8
yselivanov
LGTM (one nit though) https://codereview.appspot.com/108910043/diff/40001/asyncio/events.py File asyncio/events.py (right): https://codereview.appspot.com/108910043/diff/40001/asyncio/events.py#newcode49 asyncio/events.py:49: cb = getattr(self._callback, '__qualname__', None) ...
9 years, 10 months ago (2014-06-12 16:17:17 UTC) #9
yselivanov
9 years, 10 months ago (2014-06-12 16:21:14 UTC) #10
https://codereview.appspot.com/108910043/diff/40001/asyncio/events.py
File asyncio/events.py (right):

https://codereview.appspot.com/108910043/diff/40001/asyncio/events.py#newcode49
asyncio/events.py:49: cb = getattr(self._callback, '__qualname__', None)
or cb_name
Sign in to reply to this message.

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