Title: Document that struct binding getters return a copy of a value and propagating any changes must go through the setter · Issue #262 · NVIDIA/cuda-python · GitHub
Open Graph Title: Document that struct binding getters return a copy of a value and propagating any changes must go through the setter · Issue #262 · NVIDIA/cuda-python
X Title: Document that struct binding getters return a copy of a value and propagating any changes must go through the setter · Issue #262 · NVIDIA/cuda-python
Description: https://github.com/NVIDIA/cuda-python/pull/261/files/4abe5206ac75224a1e03a1198a10f1daa5eec2f0#r1867071402 As uncovered here, there's a lack of clarity in how attributes get packaged for Cython's Extension Types. While the bindings outwar...
Open Graph Description: https://github.com/NVIDIA/cuda-python/pull/261/files/4abe5206ac75224a1e03a1198a10f1daa5eec2f0#r1867071402 As uncovered here, there's a lack of clarity in how attributes get packaged for Cython's Ex...
X Description: https://github.com/NVIDIA/cuda-python/pull/261/files/4abe5206ac75224a1e03a1198a10f1daa5eec2f0#r1867071402 As uncovered here, there's a lack of clarity in how attributes get packaged for Cython&...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/262
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document that struct binding getters return a copy of a value and propagating any changes must go through the setter","articleBody":">https://github.com/NVIDIA/cuda-python/pull/261/files/4abe5206ac75224a1e03a1198a10f1daa5eec2f0#r1867071402\n\nAs uncovered here, there's a lack of clarity in how attributes get packaged for Cython's Extension Types. While the bindings outwardly presents their attributes in a Pythonic way, they can't always be interacted with in a Pythonic style. Often the getters/setters is actually a translation step to convert values between Python and C.\n\nIn this specific example, the setter makes sure that the Python list elements are packages in a contiguous memory for C consumption. The getter returns a copy of each element in a Python list. Both behaviors are unnatural for Python users and we should document that there's an emphasis to use the getter/setter directly.","author":{"url":"https://github.com/vzhurba01","@type":"Person","name":"vzhurba01"},"datePublished":"2024-12-03T22:29:04Z","url":"https://github.com/NVIDIA/cuda-python/issues/262"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:32810756-a263-7684-64df-57785017178a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C092:2068A3:521924:70FE45:6AF84538 |
| html-safe-nonce | 247436ddc1b6a59d5e692fe57cd5ea05065fb537d3b76a0a2e7c51b7570c508e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDkyOjIwNjhBMzo1MjE5MjQ6NzBGRTQ1OjZBRjg0NTM4IiwidmlzaXRvcl9pZCI6IjExOTQ4ODY1NDUyMjM5OTI2MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c5bc796ddf726a3b7775498db5bbfb67c9bd45b47e0e56f793444238656c002 |
| hovercard-subject-tag | issue:2716098484 |
| 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/NVIDIA/cuda-python/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb1c248c821736fcaef96c88095c3033145510fd2a5af788671a335dbf02ab3a/NVIDIA/cuda-python/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb1c248c821736fcaef96c88095c3033145510fd2a5af788671a335dbf02ab3a/NVIDIA/cuda-python/issues/262 |
| og:image:alt | https://github.com/NVIDIA/cuda-python/pull/261/files/4abe5206ac75224a1e03a1198a10f1daa5eec2f0#r1867071402 As uncovered here, there's a lack of clarity in how attributes get packaged for Cython's Ex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vzhurba01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| go-import | github.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git |
| octolytics-dimension-user_id | 1728152 |
| octolytics-dimension-user_login | NVIDIA |
| octolytics-dimension-repository_id | 381173759 |
| octolytics-dimension-repository_nwo | NVIDIA/cuda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 381173759 |
| octolytics-dimension-repository_network_root_nwo | NVIDIA/cuda-python |
| 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 | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width