Skip to content

Commit 3770178

Browse files
committed
Fix parameter order in checkNumberOfArgs
1 parent 04017d1 commit 3770178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/args.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
409409
panic("Internal error: supply the same number of results and kwlist")
410410
}
411411
min, max, name, ops := parseFormat(format)
412-
checkNumberOfArgs(name, len(args)+len(kwargs), min, max, len(results))
412+
checkNumberOfArgs(name, len(args)+len(kwargs), len(results), min, max)
413413

414414
// Check all the kwargs are in kwlist
415415
// O(N^2) Slow but kwlist is usually short

0 commit comments

Comments
 (0)