Title: allow .NET classes to override __getattr__ and __setattr__ by lostmsu · Pull Request #901 · pythonnet/pythonnet · GitHub
Open Graph Title: allow .NET classes to override __getattr__ and __setattr__ by lostmsu · Pull Request #901 · pythonnet/pythonnet
X Title: allow .NET classes to override __getattr__ and __setattr__ by lostmsu · Pull Request #901 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. This enables .NET classes to override __getattr__ and __setattr__ by implementing IGetAttr and ISetAttr interfaces correspondingly. How does it work When constructing a Python type, that will represent C# type, if the C# type implements one of the interfaces, fill corresponding slots in the Python type with custom handlers for tp_getattro or tp_setattro with implementations from slots.cs. Checklist Check all those that are applicable and complete. 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 P.S. This is a single-commit change. Probably could be cherry-picked merged without a merge commit.
Open Graph Description: What does this implement/fix? Explain your changes. This enables .NET classes to override __getattr__ and __setattr__ by implementing IGetAttr and ISetAttr interfaces correspondingly. How does it w...
X Description: What does this implement/fix? Explain your changes. This enables .NET classes to override __getattr__ and __setattr__ by implementing IGetAttr and ISetAttr interfaces correspondingly. How does it w...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/901
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:265497f4-ccd6-7062-9b39-9d5a7e6fbacf |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E3CC:B8167:1D2BA35:289D563:69728186 |
| html-safe-nonce | cb317f2d3302e1d344c04b373fec866e9d55e72103b88787814bd64acb002115 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0NDOkI4MTY3OjFEMkJBMzU6Mjg5RDU2Mzo2OTcyODE4NiIsInZpc2l0b3JfaWQiOiIyOTUzMjg2MzQ0MTg5ODM3NzAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3aa27b8e25f6aeb39663a26435ec1a60ff919c6c2886ffa05ed9c461267a62ac |
| hovercard-subject-tag | pull_request:292153999 |
| 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/901/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. This enables .NET classes to override __getattr__ and __setattr__ by implementing IGetAttr and ISetAttr interfaces correspondingly. How does it w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3cc591a09ecfa43f68be4fde9ec95eccfdf6298db2cd7d08e9eae6c9f833329 |
| 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 | 208d56d4b5936bcb8a1d3b43096d573261817603 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width