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

Issue 131660044: In debug mode, Handle and TimerHandle keeps the callback in their representation after cancel()

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

Description

In debug mode, Handle and TimerHandle keeps the callback in their representation after cancel()

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M asyncio/events.py View 4 chunks +19 lines, -13 lines 1 comment Download
M tests/test_events.py View 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 2
yselivanov
Like the idea, the more debug info we have the better! https://codereview.appspot.com/131660044/diff/1/asyncio/events.py File asyncio/events.py (right): ...
9 years, 7 months ago (2014-09-12 22:39:45 UTC) #1
haypo_gmail
9 years, 7 months ago (2014-09-17 21:18:45 UTC) #2
On 2014/09/12 22:39:45, yselivanov wrote:
> Like the idea, the more debug info we have the better!

Cool.

> https://codereview.appspot.com/131660044/diff/1/asyncio/events.py
> File asyncio/events.py (right):
> 
> https://codereview.appspot.com/131660044/diff/1/asyncio/events.py#newcode148
> asyncio/events.py:148: pos = 2 if self._cancelled else 1
> Don't like this play with positions. Can we just always append it at the end?

I don't like this code neither, but I don't want to change the representation in
this commit. They are unit tests for repr(TimerHandle). And I like displaying
most important information at the beginning of the representation, to ease
debug.
Sign in to reply to this message.

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