Skip to content

Commit 9a1bb3e

Browse files
committed
Fix ParseTupleAndKeywords
1 parent 9a3c5db commit 9a1bb3e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

notes.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ astyle --style=java --add-brackets < x.c > x.go
3333

3434
Roadmap
3535
=======
36-
* FIXME (int("a", base=16): gives int() got multiple values for argument 'base'
3736
* make pystone.py work
3837
* make enough of internals work so can run python tests
3938
* import python tests and write go test runner to run them

py/args.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
431431
args = args.Copy()
432432
for i, kw := range kwlist {
433433
if value, ok := kwargs[kw]; ok {
434-
if len(args) >= i {
434+
if len(args) > i {
435435
panic(ExceptionNewf(TypeError, "%s() got multiple values for argument '%s'", name, kw))
436436
}
437437
args = append(args, value)

0 commit comments

Comments
 (0)