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

Issue 67400043: Ensure call_soon() invoked on current loop when get_debug() enabled

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by davidfstr
Modified:
10 years, 1 month ago
CC:
python-tulip_googlegroups.com
Visibility:
Public.

Description

Ensure call_soon() invoked on current loop when get_debug() enabled

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add check to call_at() and call_later(). Add unit tests. #

Patch Set 3 : Integrate inline comments from patch set 1. #

Total comments: 11

Patch Set 4 : Private keyword parameter eliminated. Integrate other feedback. #

Total comments: 2

Patch Set 5 : Preoptimize to avoid get_debug() and _assert_is_current_event_loop() calls on main path. #

Total comments: 6

Patch Set 6 : Integrate more feedback. #

Patch Set 7 : Remove wrong_thread=False tests. Inline and split remaining 2 tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
M asyncio/base_events.py View 1 2 3 4 5 2 chunks +22 lines, -1 line 0 comments Download
M tests/test_base_events.py View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 18
davidfstr
The assertion introduced by this change has already been helpful in identifying incorrect thread usage ...
10 years, 2 months ago (2014-02-23 06:28:21 UTC) #1
GvR
I opened http://code.google.com/p/tulip/issues/detail?id=154 to track this. General comment: shouldn't call_at() and call_later() have the same ...
10 years, 2 months ago (2014-02-23 23:38:24 UTC) #2
yselivanov
We'll also need unit-tests. https://codereview.appspot.com/67400043/diff/1/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/67400043/diff/1/asyncio/base_events.py#newcode266 asyncio/base_events.py:266: def call_soon(self, callback, *args, _check_thread=True): ...
10 years, 2 months ago (2014-02-24 02:05:19 UTC) #3
davidfstr
Responded to inline comments on patch set 1. https://codereview.appspot.com/67400043/diff/1/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/67400043/diff/1/asyncio/base_events.py#newcode266 asyncio/base_events.py:266: def ...
10 years, 1 month ago (2014-03-03 01:24:26 UTC) #4
GvR
The strange error message about __check_thread is because of the private name mangling. Try using ...
10 years, 1 month ago (2014-03-03 02:19:47 UTC) #5
haypo_gmail
https://codereview.appspot.com/67400043/diff/40001/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/67400043/diff/40001/asyncio/base_events.py#newcode240 asyncio/base_events.py:240: def call_later(self, delay, callback, *args, _check_loop=True): I don't understand ...
10 years, 1 month ago (2014-03-03 11:28:32 UTC) #6
davidfstr
New diff uploaded: Private keyword parameter eliminated. Integrate other feedback. # (edit)
10 years, 1 month ago (2014-03-18 02:48:24 UTC) #7
haypo_gmail
https://codereview.appspot.com/67400043/diff/60001/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/67400043/diff/60001/asyncio/base_events.py#newcode262 asyncio/base_events.py:262: self._assert_is_current_event_loop() IMO you should move the check to the ...
10 years, 1 month ago (2014-03-18 06:14:39 UTC) #8
davidfstr
New diff uploaded: Preoptimize to avoid get_debug() and _assert_is_current_event_loop() calls on main path.
10 years, 1 month ago (2014-03-19 06:17:23 UTC) #9
haypo_gmail
The patch looks good to me, except of 2 minor nits that can be fixed ...
10 years, 1 month ago (2014-03-19 10:07:18 UTC) #10
yselivanov
https://codereview.appspot.com/67400043/diff/80001/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/67400043/diff/80001/asyncio/base_events.py#newcode278 asyncio/base_events.py:278: return self._call_soon(callback, *args, check_loop=True) On 2014/03/19 10:07:18, haypo_gmail wrote: ...
10 years, 1 month ago (2014-03-19 14:52:48 UTC) #11
davidfstr
New diff posted: Integrated more feedback. I am learning more about making performance optimizations in ...
10 years, 1 month ago (2014-03-20 04:07:44 UTC) #12
yselivanov
On 2014/03/20 04:07:44, davidfstr wrote: > New diff posted: Integrated more feedback. > > I ...
10 years, 1 month ago (2014-03-20 04:16:56 UTC) #13
davidfstr
New diff uploaded: Remove wrong_thread=False tests. Inline and split remaining 2 tests.
10 years, 1 month ago (2014-03-21 02:43:27 UTC) #14
yselivanov
On 2014/03/21 02:43:27, davidfstr wrote: > New diff uploaded: Remove wrong_thread=False tests. Inline and split ...
10 years, 1 month ago (2014-03-21 03:40:42 UTC) #15
haypo_gmail
On 2014/03/21 03:40:42, yselivanov wrote: > On 2014/03/21 02:43:27, davidfstr wrote: > > New diff ...
10 years, 1 month ago (2014-03-21 09:02:31 UTC) #16
GvR
On 2014/03/21 09:02:31, haypo_gmail wrote: > IMO it would be nice to have this tool ...
10 years, 1 month ago (2014-03-24 22:09:22 UTC) #17
haypo_gmail
10 years, 1 month ago (2014-03-24 23:44:11 UTC) #18
On 2014/03/24 22:09:22, GvR wrote:
> On 2014/03/21 09:02:31, haypo_gmail wrote:
> > IMO it would be nice to have this tool in CPython 3.4, what do you think?
> 
> I think that makes sense and I don't see any reason why you can't, so go
ahead.
> (Are there other things that could be merged into the 3.4 branch?)

Ok, patch applied to Python 3.4 (458181a8b48a). I don't know other asyncio
changes which are specific to Python 3.5.
Sign in to reply to this message.

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