Commits

Mark Shannon committed f8d93e4 Draft

Do not defer frames with * or ** args

Comments (0)

Files changed (1)

Python/trace_D_O_C.c

     co = (PyCodeObject *)PyFunction_GET_CODE(func);
     if (kws == NULL || args == NULL || Py_SIZE(args) != co->co_argcount)
         goto fail;
+    if (co->co_flags & (CO_VARARGS | CO_VARKEYWORDS))
+        goto fail;
     if (co->co_cellvars && Py_SIZE(co->co_cellvars)) {
         COMMENT("Cell variables not yet supported");
         goto fail;