https://codereview.appspot.com/98680044/diff/1/asyncio/base_events.py File asyncio/base_events.py (right): https://codereview.appspot.com/98680044/diff/1/asyncio/base_events.py#newcode135 asyncio/base_events.py:135: self._closed, self.get_debug())) I wonder if we should also add ...
9 years, 11 months ago
(2014-05-28 23:05:27 UTC)
#1
On 2014/05/28 23:45:03, GvR wrote: > Since event loops don't have any other properties I ...
9 years, 11 months ago
(2014-05-28 23:50:18 UTC)
#5
On 2014/05/28 23:45:03, GvR wrote:
> Since event loops don't have any other properties I think get_closed() is the
> thing to do.
Maybe is_closed(), similar to is_running()?
Oh, fine. On Wed, May 28, 2014 at 4:50 PM, <yselivanov@gmail.com> wrote: > On 2014/05/28 ...
9 years, 11 months ago
(2014-05-28 23:51:47 UTC)
#6
Oh, fine.
On Wed, May 28, 2014 at 4:50 PM, <yselivanov@gmail.com> wrote:
> On 2014/05/28 23:45:03, GvR wrote:
>
>> Since event loops don't have any other properties I think get_closed()
>>
> is the
>
>> thing to do.
>>
>
> Maybe is_closed(), similar to is_running()?
>
> https://codereview.appspot.com/98680044/
>
--
--Guido van Rossum (python.org/~guido)
On 2014/06/03 03:11:34, GvR wrote: > LGTM. You may shorten the __repr__ if not closed ...
9 years, 11 months ago
(2014-06-03 23:19:33 UTC)
#8
On 2014/06/03 03:11:34, GvR wrote:
> LGTM. You may shorten the __repr__ if not closed (as Yuri suggested), or you
may
> leave it as is.
I disagree with Yury's suggestion for __repr__ because it is possible to close
an event loop while it is running (running=True). But it looks like a bug in
asyncio:
https://code.google.com/p/tulip/issues/detail?id=171
I will reconsider Yury's suggestion when this issue will be solved.
Issue 98680044: Add BaseEventLoop._closed attribute
Created 9 years, 11 months ago by haypo_gmail
Modified 9 years, 11 months ago
Reviewers: GvR, yselivanov
Base URL:
Comments: 9