On 2/25/2014, 12:04 PM, Victor Stinner wrote:
2014-02-25 17:26 GMT+01:00 Yury Selivanov <[email protected]>:
Victor,

I think the design should be a bit different.

Instead of passing 'exc_info', we can pass 'traceback' key, like
in the snippet below:
Why not calling sys.exc_info() in Tulip too? It should work.

It would work, but python3 has exception.__traceback__
and I think it's better for asyncio to use it.

BTW, one more option:

call_exception_handler can detect if context['exception']
is missing '__traceback__' and it is python2, and call
'sys.exc_info()[2]' itself. No need to 'exc_info'.

Again, the reason I want to eliminate 'exc_info' option, is
because it will make porting to asyncio & python3 harder.
Better to find a way of not using it.

Yury

Reply via email to