Title: Errors relating to math module · Issue #2845 · lcompilers/lpython · GitHub
Open Graph Title: Errors relating to math module · Issue #2845 · lcompilers/lpython
X Title: Errors relating to math module · Issue #2845 · lcompilers/lpython
Description: Currently the integration test for the math module doesn't work I have compiled a list of issues that cause this Kwargs are not supported in general (in is_close specifically) Functions returning non trivial data types (modf, frexp) whic...
Open Graph Description: Currently the integration test for the math module doesn't work I have compiled a list of issues that cause this Kwargs are not supported in general (in is_close specifically) Functions returning n...
X Description: Currently the integration test for the math module doesn't work I have compiled a list of issues that cause this Kwargs are not supported in general (in is_close specifically) Functions returni...
Opengraph URL: https://github.com/lcompilers/lpython/issues/2845
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Errors relating to math module","articleBody":"Currently the integration test for the math module doesn't work I have compiled a list of issues that cause this\n\n- [x] Kwargs are not supported in general (in `is_close` specifically)\n- [ ] Functions returning non trivial data types (`modf`, `frexp`) which are then assigned to a variable \n\nAnother error i found while testing is\n- Functions returning non trivial data types which are not assigned to anything or passed into functions\n\n\nSimplest replication code for each\n\n```py\ndef f(x: i32 = 0):\n print(x)\n```\n\n```py\ndef f() -\u003e list[i32]:\n return [1,2]\n\nx: list[i32]\nx = f()\n```\n\n```py\ndef f() -\u003e list[i32]:\n return [1,2]\n\nf()\n```\n\nThe only cases in which function returning lists and tuple are not a headache is when we use it as input to some function","author":{"url":"https://github.com/swamishiju","@type":"Person","name":"swamishiju"},"datePublished":"2025-04-11T06:28:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2845/lpython/issues/2845"}
| 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:888a5535-e1d3-8e14-3049-ef457f031bad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADD8:1831EB:60F1DE:841DD6:6977537A |
| html-safe-nonce | 9c41546079b4bf909682f805deb51db858a981310a858d3423ca693a79c26168 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREQ4OjE4MzFFQjo2MEYxREU6ODQxREQ2OjY5Nzc1MzdBIiwidmlzaXRvcl9pZCI6IjQzMDg4ODE1OTU5NDQwOTY2MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fdce75984feade52da9356b2c72713f2d97d4e85bda511449ed57ad04864d90a |
| hovercard-subject-tag | issue:2987679938 |
| 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/2845/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb68cb91d37df3b2f5f3338832a66de1850c0eb236a62dde9c150e9fe8c2fac5/lcompilers/lpython/issues/2845 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb68cb91d37df3b2f5f3338832a66de1850c0eb236a62dde9c150e9fe8c2fac5/lcompilers/lpython/issues/2845 |
| og:image:alt | Currently the integration test for the math module doesn't work I have compiled a list of issues that cause this Kwargs are not supported in general (in is_close specifically) Functions returning n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swamishiju |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| 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 | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width