Skip to content

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

@kmr-srbh

Description

@kmr-srbh
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions