This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author francismb
Recipients brett.cannon, francismb, ncoghlan, vstinner, yselivanov
Date 2016-02-03.22:15:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
From the two checks on Python/compile.c:

+ expr_ty meth = e->v.Call.func;
+    /* Check [...] that
+       the call doesn't have keyword parameters. */
+    /* Check that there are no *varargs types of arguments. */

I just wonder how many times those kind of checks/guards are done
on the whole Cpython code base (the second one seems expensive).

(Naive Idea):
Wouldn't be some kind of fast function description (e.g. bit flags
or 'e->v.Call.func.desc') generally helpful? The function description
could have: 'has_keywords' or 'has_varargs', ... 

Thanks in advance!
Date User Action Args
2016-02-03 22:15:59francismbsetrecipients: + francismb, brett.cannon, ncoghlan, vstinner, yselivanov
2016-02-03 22:15:59francismbsetmessageid: <>
2016-02-03 22:15:59francismblinkissue26219 messages
2016-02-03 22:15:59francismbcreate