Le 7 févr. 2015 22:34, "Greg Ewing" <[email protected]> a écrit : with --shared) > You might be able to use Py_AddPendingCall to schedule > what you want done outside the context of the signal > handler.
I don't how it could work. You have to increment the reference counting, but also maybe increment references to other frames. Again there is no guarantee that python structures are consistent in a signal handler. While a faulthandler is only called once, a profiler is called very frequently, up to once per python instruction. Unlikely bugs become very likely. Victor
_______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
