This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients vstinner, xdegaye
Date 2014-02-13.15:28:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392305298.15.0.344316690935.issue20601@psf.upfronthosting.co.za>
In-reply-to
Content
> A signal should not remove the trace function.

And a signal should be traced.
The attached patch postpones all signals except SIGINT while the trace function is being invoked, and thus the signal is traced after returning from this function.
My previous test with a little improvement has been attached too and outputs now, with this patch:

tracing foo
tracing handler
Got ZeroDivisionError.
trace function: <function trace at 0x7fada2776c90>

I did not test the patch against WITH_THREAD not being defined.
History
Date User Action Args
2014-02-13 15:28:18xdegayesetrecipients: + xdegaye, vstinner
2014-02-13 15:28:18xdegayesetmessageid: <1392305298.15.0.344316690935.issue20601@psf.upfronthosting.co.za>
2014-02-13 15:28:18xdegayelinkissue20601 messages
2014-02-13 15:28:18xdegayecreate