Title: Long-lived instances of internal classes (`ManagedType` and derived) should use `PyObject` instead of raw pointers · Issue #1562 · pythonnet/pythonnet · GitHub
Open Graph Title: Long-lived instances of internal classes (`ManagedType` and derived) should use `PyObject` instead of raw pointers · Issue #1562 · pythonnet/pythonnet
X Title: Long-lived instances of internal classes (`ManagedType` and derived) should use `PyObject` instead of raw pointers · Issue #1562 · pythonnet/pythonnet
Description: We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with BorrowedReference and NewReference types. For long-lived references we have PyObject, that ensures safety, howeve...
Open Graph Description: We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with BorrowedReference and NewReference types. For long-lived references we ha...
X Description: We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with BorrowedReference and NewReference types. For long-lived references we ha...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Long-lived instances of internal classes (`ManagedType` and derived) should use `PyObject` instead of raw pointers","articleBody":"We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with `BorrowedReference` and `NewReference` types. For long-lived references we have `PyObject`, that ensures safety, however we are not using it in internal classes. There's very little reason not to do so.","author":{"url":"https://github.com/lostmsu","@type":"Person","name":"lostmsu"},"datePublished":"2021-09-22T17:07:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1562/pythonnet/issues/1562"}
| 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:0f72ee76-561c-df7b-d0ef-859cb15d8a54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D488:340FCB:20B0E83:2C56F69:69708404 |
| html-safe-nonce | 89b3ffa09903e4175bfdcc00378189a985a800653c433f043c52edb085c8f004 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDg4OjM0MEZDQjoyMEIwRTgzOjJDNTZGNjk6Njk3MDg0MDQiLCJ2aXNpdG9yX2lkIjoiOTAzMjQ0NzQ3OTQ1NzU0NzI2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 473c7462f76e23cbd96b0b7fad3b0ef8ddcb2f65a4f2cdaec91e21d9ba8a5e7e |
| hovercard-subject-tag | issue:1004528213 |
| 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/pythonnet/pythonnet/1562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38e36a1a72f1031202a38b3999ea5042a0ee42c1728d892ea4bcd42176570bed/pythonnet/pythonnet/issues/1562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38e36a1a72f1031202a38b3999ea5042a0ee42c1728d892ea4bcd42176570bed/pythonnet/pythonnet/issues/1562 |
| og:image:alt | We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with BorrowedReference and NewReference types. For long-lived references we ha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lostmsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width