STINNER Victor added the comment: issue17223_with_test.diff looks good to me (we may just drop {...} around return NULL). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17223> _______________________________________