Skip to content

Commit 3d9f636

Browse files
committed
py: add handling of format 'n' to ParseTupleAndKeywords
1 parent 51a6831 commit 3d9f636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/args.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
476476
return ExceptionNewf(TypeError, "%s() argument %d must be str, not %s", name, i+1, arg.Type().Name)
477477
}
478478
*result = arg
479-
case 'i':
479+
case 'i', 'n':
480480
if _, ok := arg.(Int); !ok {
481481
return ExceptionNewf(TypeError, "%s() argument %d must be int, not %s", name, i+1, arg.Type().Name)
482482
}

0 commit comments

Comments
 (0)