From cd129c9643760ddb7938ac4f15bf378722e14855 Mon Sep 17 00:00:00 2001 From: Lucas Mirelmann Date: Tue, 21 Apr 2026 19:36:24 +0200 Subject: [PATCH] Clarification on print built-in function Clarified that the named argument `sep` of the built-in function `print` must be a string. This follows the Bazel and star lark-go implementations. Note: Python accepts string or None, this is why the clarification is needed. --- spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.md b/spec.md index b99b3c6..37c5189 100644 --- a/spec.md +++ b/spec.md @@ -3495,7 +3495,7 @@ min("two", "three", "four", key=len) # "two", the shortest `print(*args, sep=" ")` prints its arguments, followed by a newline. Arguments are formatted as if by `str(x)` and separated with a space, -unless an alternative separator is specified by a `sep` named argument. +unless an alternative separator is specified by a `sep` string named argument. Example: