Title: Bug: Non-constant value for `sep` does not work inside `print()` · Issue #2668 · lcompilers/lpython · GitHub
Open Graph Title: Bug: Non-constant value for `sep` does not work inside `print()` · Issue #2668 · lcompilers/lpython
X Title: Bug: Non-constant value for `sep` does not work inside `print()` · Issue #2668 · lcompilers/lpython
Description: 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...
Open Graph Description: 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:~/Pr...
X Description: 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@...
Opengraph URL: https://github.com/lcompilers/lpython/issues/2668
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Non-constant value for `sep` does not work inside `print()`","articleBody":"```python\r\nseperator: str = \"#\"\r\nprint(1, 2, 3, 4, 5, sep=seperator)\r\n```\r\n#### CPython\r\n```console\r\n(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ python ./examples/example.py\r\n1#2#3#4#5\r\n```\r\n\r\n#### LPython\r\n```console\r\n(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ ./src/bin/lpython ./examples/example.py\r\n12345\r\n```","author":{"url":"https://github.com/kmr-srbh","@type":"Person","name":"kmr-srbh"},"datePublished":"2024-04-26T08:57:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2668/lpython/issues/2668"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a35edb7e-d608-66e6-f295-13a0564184d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B89E:1E4FEF:13A9183:1963AB3:696B1B05 |
| html-safe-nonce | 610d9fa64d18d799c61f6b6e1096ff5a224fba37dd91204c9fefd13c5b65e434 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODlFOjFFNEZFRjoxM0E5MTgzOjE5NjNBQjM6Njk2QjFCMDUiLCJ2aXNpdG9yX2lkIjoiOTA5NzEwODMzNjY1MjUyNDI5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 75e049e529c59976db41e759fef6bcb4edff71db206ee8904284d8483bf38169 |
| hovercard-subject-tag | issue:2265303575 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lcompilers/lpython/2668/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5617ef11cae66461a6e41b8ab91a96e70cab5336eac9bafd589047d407cdd147/lcompilers/lpython/issues/2668 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5617ef11cae66461a6e41b8ab91a96e70cab5336eac9bafd589047d407cdd147/lcompilers/lpython/issues/2668 |
| og:image:alt | 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:~/Pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kmr-srbh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git |
| octolytics-dimension-user_id | 96538276 |
| octolytics-dimension-user_login | lcompilers |
| octolytics-dimension-repository_id | 442864346 |
| octolytics-dimension-repository_nwo | lcompilers/lpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 442864346 |
| octolytics-dimension-repository_network_root_nwo | lcompilers/lpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width