lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 156 forks source link

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

Open kmr-srbh opened 2 months ago

kmr-srbh commented 2 months ago
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