lpython icon indicating copy to clipboard operation
lpython copied to clipboard

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

Open kmr-srbh opened this issue 1 year ago • 0 comments

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 avatar Apr 26 '24 08:04 kmr-srbh