Skip to content

Correct keyword arg name for print builtin to sep#423

Open
ben-krieger wants to merge 1 commit into
withered-magic:mainfrom
ben-krieger:fix-print-sep-arg
Open

Correct keyword arg name for print builtin to sep#423
ben-krieger wants to merge 1 commit into
withered-magic:mainfrom
ben-krieger:fix-print-sep-arg

Conversation

@ben-krieger

@ben-krieger ben-krieger commented Feb 14, 2026

Copy link
Copy Markdown

This fixes a bug where the intrinsic argument for the print builtin separator was incorrectly named "str" instead of "sep". The fix changes a single string literal to match the actual print(..., sep=...) keyword argument.

Before the fix:

image

and

image

But using "str" obviously failed on run:

$ starlark hello.star
Traceback (most recent call last):
  hello.star:4:5: in <toplevel>
  hello.star:2:10: in main
Error in print: print: unexpected keyword argument "str"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant