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
(81)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 133890043: BaseEventLoop.call_exception_handler() now accepts a "source" key

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by haypo_gmail
Modified:
11 years, 3 months ago
Reviewers:
yselivanov
CC:
haypo_gmail, GvR
Visibility:
Public.
BaseEventLoop.call_exception_handler() now accepts a "source" key

Patch Set 1 #

Created: 11 years, 4 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -15 lines) Patch
M asyncio/base_events.py View 1 chunk +4 lines, -0 lines 0 comments Download
M asyncio/events.py View 1 chunk +1 line, -2 lines 0 comments Download
M asyncio/futures.py View 1 chunk +1 line, -2 lines 0 comments Download
M asyncio/tasks.py View 1 chunk +1 line, -2 lines 0 comments Download
M asyncio/windows_events.py View 3 chunks +3 lines, -6 lines 0 comments Download
M tests/test_base_events.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/test_events.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/test_tasks.py View 1 chunk +1 line, -1 line 0 comments Download
Total messages: 1
|
yselivanov
Hm. I don't like this source / source._source_traceback logic in `BaseEventLoop.default_exception_handler()`. Simply because it's an ...
11 years, 3 months ago (2014年09月12日 22:30:47 UTC) #1
Hm.
I don't like this source / source._source_traceback logic in
`BaseEventLoop.default_exception_handler()`. Simply because it's an
undocumented attribute of 'context' dict with an undocumented attribute
'_source_traceback'. People may start copying&pasting this in order to have
custom exception handlers.
Can you just call it like this:
 call_exception_handler({
 ...,
 'source_traceback': self.source_traceback
 })
?
Yes, sometimes you'll have Nones in there, but what's the problem with that?
I'd also add 'source_traceback' to the docstring of 'call_exception_handler()'
method.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

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