Title: TypeOffset class no longer depends on target Python version by lostmsu · Pull Request #1292 · pythonnet/pythonnet · GitHub
Open Graph Title: TypeOffset class no longer depends on target Python version by lostmsu · Pull Request #1292 · pythonnet/pythonnet
X Title: TypeOffset class no longer depends on target Python version by lostmsu · Pull Request #1292 · pythonnet/pythonnet
Description: This is a stage of removing the need to prepare a separate build of Python.Runtime for each Python version. What does this implement/fix? Explain your changes. This removes the need to pick TypeOffset at compile time. Instead, for each supported Python version a separate class is generated (e.g. TypeOffset36). Then the Runtime (via new class ABI) picks the correct class based on actual Python version using reflection, and copies only the necessary TypeOffset members over from it. ManagedDataOffsets.Magic is now also read at runtime from tp_basicsize of the builtins.type class. Any other comments? N/A Checklist Check all those that are applicable and complete. N/A Make sure to include one or more tests for your change If an enhancement PR, please create docs and at best an example Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: This is a stage of removing the need to prepare a separate build of Python.Runtime for each Python version. What does this implement/fix? Explain your changes. This removes the need to pick TypeOff...
X Description: This is a stage of removing the need to prepare a separate build of Python.Runtime for each Python version. What does this implement/fix? Explain your changes. This removes the need to pick TypeOff...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1292
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:081ea582-45a4-e0c0-3f03-ccfacaa305c9 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8740:73C2E:9DCF65:DB6655:6970B736 |
| html-safe-nonce | babf0d0ac6ae5ed2892e86c5376c556fbc0b16bb4a8f2d21f2c39e89c748f897 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzQwOjczQzJFOjlEQ0Y2NTpEQjY2NTU6Njk3MEI3MzYiLCJ2aXNpdG9yX2lkIjoiNjU3NjY3ODY1OTU2Nzk1NzgxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2368d44f812c9c05522d536ae2902a1ca1195483a89ac6221698118c74a95f80 |
| hovercard-subject-tag | pull_request:526305296 |
| 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/1292/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 | This is a stage of removing the need to prepare a separate build of Python.Runtime for each Python version. What does this implement/fix? Explain your changes. This removes the need to pick TypeOff... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width