Skip to content

Bug: Non-constant value for sep does not work inside print() #2668

New issue

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

Open
kmr-srbh opened this issue Apr 26, 2024 · 0 comments
Open

Bug: Non-constant value for sep does not work inside print() #2668

kmr-srbh opened this issue Apr 26, 2024 · 0 comments

Comments

@kmr-srbh
Copy link
Contributor

seperator: str = "#"
print(1, 2, 3, 4, 5, sep=seperator)

CPython

(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ python ./examples/example.py
1#2#3#4#5

LPython

(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ ./src/bin/lpython ./examples/example.py
12345
@kmr-srbh kmr-srbh changed the title Bug: Non-constant values for sep do not work inside print() Bug: Non-constant value for sep does not work inside print() Apr 29, 2024
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

No branches or pull requests

1 participant