Re: [Python-Dev] cProfile with generator throwing

2007-06-09 Thread Georg Brandl
Eyal Lotem schrieb: > Hi. It seems that cProfile does not support throwing exceptions into > generators properly, when an external timer routine is used. > > The problem is that _lsprof.c: ptrace_enter_call assumes that there > are no exceptions set when it is called, which is not true when the >

[Python-Dev] cProfile with generator throwing

2007-06-08 Thread Eyal Lotem
Hi. It seems that cProfile does not support throwing exceptions into generators properly, when an external timer routine is used. The problem is that _lsprof.c: ptrace_enter_call assumes that there are no exceptions set when it is called, which is not true when the generator frame is being gen_sen