1.1 --- a/templates/progops.c Sun Feb 05 00:58:55 2017 +0100
1.2 +++ b/templates/progops.c Sun Feb 05 01:45:04 2017 +0100
1.3 @@ -199,9 +199,10 @@
1.4 unsigned int pos, kwpos;
1.5
1.6 /* Check the number of arguments. */
1.7 + /* NOTE: Should use a more specific exception. */
1.8
1.9 if ((min > (nargs + nkwargs)) || ((nargs + nkwargs) > max))
1.10 - return __NULL;
1.11 + __raise_type_error();
1.12
1.13 /* Copy the arguments. */
1.14
1.15 @@ -224,9 +225,10 @@
1.16 /* Check the table entry against the supplied argument details.
1.17 Set the argument but only if it does not overwrite positional
1.18 arguments. */
1.19 + /* NOTE: Should use a more specific exception. */
1.20
1.21 if ((pos == -1) || (pos < nargs))
1.22 - return __NULL;
1.23 + __raise_type_error();
1.24
1.25 /* Set the argument using the appropriate position. */
1.26