8000 stdlib/string: first import by sbinet · Pull Request #175 · go-python/gpython · GitHub
[go: up one dir, main page]

Skip to content

stdlib/string: first import #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
py: add handling of format 'n' to ParseTupleAndKeywords
  • Loading branch information
sbinet committed Mar 25, 2022
commit 3d9f636fe4635a3e2c0d4ea24d438f055b138d49
2 changes: 1 addition & 1 deletion py/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
return ExceptionNewf(TypeError, "%s() argument %d must be str, not %s", name, i+1, arg.Type().Name)
}
*result = arg
case 'i':
case 'i', 'n':
if _, ok := arg.(Int); !ok {
return ExceptionNewf(TypeError, "%s() argument %d must be int, not %s", name, i+1, arg.Type().Name)
}
Expand Down
0