
20 Sep
2012
20 Sep
'12
7:12 a.m.
2012/9/20 Mark Dickinson dickinsm@gmail.com:
Thoughts?
I tried to define the error messages in terms of the callee's signature. I call the formals that are not variadic, keyword variadic, or keyword-only, positional. For example, in
def f(a, b, c, *args, d): pass
a, b, and c are positional. Hence the "positional" in error messages.
As you noted in your next message, keyword-only arguments need to be distinguished from these "positional" arguments somehow. Maybe it helps to think of "positional" to mean "the only formals you can pass to with position" (excepting variadic ones).
I'm certainly open to suggestions.
--
Regards,
Benjamin