Title: Remove intent Out · Issue #2858 · lcompilers/lpython · GitHub
Open Graph Title: Remove intent Out · Issue #2858 · lcompilers/lpython
X Title: Remove intent Out · Issue #2858 · lcompilers/lpython
Description: Due to lfortran/lfortran#7842 (comment), the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, which Python doesn't do. So the subset of Py...
Open Graph Description: Due to lfortran/lfortran#7842 (comment), the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, whic...
X Description: Due to lfortran/lfortran#7842 (comment), the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, ...
Opengraph URL: https://github.com/lcompilers/lpython/issues/2858
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove intent Out","articleBody":"Due to https://github.com/lfortran/lfortran/pull/7842#issuecomment-2993661103, the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, which Python doesn't do. So the subset of Python can only do intent In (read only --- enforced by LPython) and intent InOut (the default in Python for non-primitive types). Primitive types must be intent In (effectively read only), we already do that.","author":{"url":"https://github.com/certik","@type":"Person","name":"certik"},"datePublished":"2025-06-21T16:30:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2858/lpython/issues/2858"}
| 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:d9af23a4-6ff3-6942-5012-6e4b6cb2fedd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D43C:34E4BD:FC7E16:15CDBB6:69776C6D |
| html-safe-nonce | 23a5c62ed123715217e48f3144d565d64aaf8144b2214912327224073ced5b3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDNDOjM0RTRCRDpGQzdFMTY6MTVDREJCNjo2OTc3NkM2RCIsInZpc2l0b3JfaWQiOiIzOTUzMDQ1NjI5OTM5NzA2OTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0264f856c0c499c1c5ab59dff599a486afb9021a4cee7aa1dd7ff0e1f993fb97 |
| hovercard-subject-tag | issue:3165211083 |
| 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/2858/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be7e21cdcdfa7e17f9e1e5337a8940418f926186980862c32df5301a6cf9f3fe/lcompilers/lpython/issues/2858 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be7e21cdcdfa7e17f9e1e5337a8940418f926186980862c32df5301a6cf9f3fe/lcompilers/lpython/issues/2858 |
| og:image:alt | Due to lfortran/lfortran#7842 (comment), the intent Out doesn't have an equivalent behavior in Python, since for structs with default values we would need to initialize them on function enter, whic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | certik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 425384cc392ce2ddd1a7a0c1e7043ab4192d4c04452a2ed7f2f38d2fa9293b5a |
| 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 | 72de26f7ca9bdb0559ebf1e63e6c685ee2c520ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width