Closed
Description
Bug report
There are several problems that I see with _lsprof.Profiler.enable()
method:
Lines 783 to 787 in d384050
PyErr_Clear()
call to show that this is intentional- Also, the same code does not decrement the refcount of the result, it is
None
right now (which is immortal), but we still prefer to do the refcount for such objects, where possible - This code ignores possible exceptions:
Lines 795 to 799 in d384050
I will send a PR.