We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It looks like it is impossible to call a function with named arguments. While g(1) works well, g(x=1) results in an error.
g(1)
g(x=1)
Given the following snippet:
import starlark as sl glb = sl.Globals.standard() mod = sl.Module() def g(x): print(f"g called with {x}") return 2 * x mod.add_callable("g", g) ast = sl.parse("a.star", "g(x=1)") def load(name): raise FileNotFoundError(name) sl.eval(mod, ast, glb, sl.FileLoader(load))
I obtain the following error:
error: Found `x` extra named parameter(s) for call to function
The text was updated successfully, but these errors were encountered:
Yep, not currently implemented:
starlark-pyo3/src/lib.rs
Lines 622 to 641 in 00f5fe7
Help welcome.
Sorry, something went wrong.
No branches or pull requests
It looks like it is impossible to call a function with named arguments. While
g(1)
works well,g(x=1)
results in an error.How to reproduce
Given the following snippet:
I obtain the following error:
The text was updated successfully, but these errors were encountered: