Xavier de Gaye added the comment: The patch is wrong, the frame may not be run by the current PyThreadState. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17277> _______________________________________