Title: Clear weakref list when reflected object is destroyed by lostmsu · Pull Request #1758 · pythonnet/pythonnet · GitHub
Open Graph Title: Clear weakref list when reflected object is destroyed by lostmsu · Pull Request #1758 · pythonnet/pythonnet
X Title: Clear weakref list when reflected object is destroyed by lostmsu · Pull Request #1758 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list associated with the instance in tp_clear. This was missed when #1267 was superseded. P.S. without the fix corresponding test would crash with segfault due to an attempt to dereference an object that no longer exists via a weak reference to it. Does this close any currently open issues? N/A Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change
Open Graph Description: What does this implement/fix? Explain your changes. According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list ass...
X Description: What does this implement/fix? Explain your changes. According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list ass...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1758
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f2d32797-23e1-a8a3-ecb9-30e01847a6ed |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 932C:28493E:1AB76D6:2564F15:6970DE4F |
| html-safe-nonce | 8577f0acc35f53b5f290ddb05f784bb96470bb5982ef9a050b8b25e6f0abadb3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzJDOjI4NDkzRToxQUI3NkQ2OjI1NjRGMTU6Njk3MERFNEYiLCJ2aXNpdG9yX2lkIjoiNTk0NjQ2NDk5OTk4NTcwMDQzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c58a70facba5b17a4682c8518919cb4233c452e5e9b96f763d9869c31be9ed9c |
| hovercard-subject-tag | pull_request:904287515 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/1758/checks |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list ass... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width