string split/rsplit do not accept named parameters #14309
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Starlark-Interpreter
Issues involving the Starlark interpreter used by Bazel
type: bug
Python strings accept named parameters for the string.strip/rstrip functions
I was surprised that this failed when used in a .bzl file
adding the following to src/test/java/net/starlark/java/eval/testdata/string_split.star will cause the test to fail
error:
Marking these methods as "named" in src/main/java/net/starlark/java/eval/StringModule.java fixes the problem.
I have a Google-internal demonstration change at go/kvlhy
The text was updated successfully, but these errors were encountered: