Skip to content

Avoid false-positive print separator diagnostic with starred argument#8079

Merged
charliermarsh merged 1 commit intomainfrom
charlie/star
Oct 19, 2023
Merged

Avoid false-positive print separator diagnostic with starred argument#8079
charliermarsh merged 1 commit intomainfrom
charlie/star

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Given print(*a_list_with_elements, sep="\n"), we can't remove the separator (unlike in print(a, sep="\n")), since we don't know how many arguments were provided.

Closes #8078.

@charliermarsh charliermarsh added the bug Something isn't working label Oct 19, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) October 19, 2023 22:11
@charliermarsh charliermarsh force-pushed the charlie/star branch 3 times, most recently from 61ee4f5 to b1b2a1c Compare October 19, 2023 22:19
@charliermarsh charliermarsh merged commit a00c445 into main Oct 19, 2023
@charliermarsh charliermarsh deleted the charlie/star branch October 19, 2023 22:30
@github-actions
Copy link
Copy Markdown
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FURB105 [*] Unnecessary separator passed to print

1 participant