Hm. I don't like this source / source._source_traceback logic in `BaseEventLoop.default_exception_handler()`. Simply because it's an ...
9 years, 7 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.
Issue 133890043: BaseEventLoop.call_exception_handler() now accepts a "source" key
Created 9 years, 8 months ago by haypo_gmail
Modified 9 years, 7 months ago
Reviewers: yselivanov
Base URL:
Comments: 0