Serhiy Storchaka added the comment: I think the code would be simpler if convert the argument of frame_settrace() to NULL if it is Py_None. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20041> _______________________________________