Title: Proposal: Implement binding manager to hold binding overrides by koubaa · Pull Request #2543 · pythonnet/pythonnet · GitHub
Open Graph Title: Proposal: Implement binding manager to hold binding overrides by koubaa · Pull Request #2543 · pythonnet/pythonnet
X Title: Proposal: Implement binding manager to hold binding overrides by koubaa · Pull Request #2543 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. This adds a place to register at runtime options to customize the binding of types. This customization can be specified at a type or assembly level. Does this close any currently open issues? No, but it can be used as a way to close issues going forwards - especially in cases where there is disagreement about what the correct way to bind to python, or if there are legacy compatibility reasons to bind in a way that is not the default way. For example, in the ansys-pythonnet fork, this is proposed to be used in two ways: to bind properties and methods coming from explicit interface implementation in order to satisfy a requirement in one library for compatibility with legacy IronPython scripts. In IronPython, explicit interface implementations are provided in Python, even when that is not the idiomatic choice. to automatically add pep8 aliases, allowing python code to use normal python style even when the C# library uses the normal C# style. As this is just a proposal - I will move forward with the checklist if the maintainers of pythonnet agree with the direction. Example usage (from python) m = clr.AddReference('MyLib') from Python.Runtime import BindingManager, BindingOptions binding_options = BindingOptions() binding_options.SuppressDocs = True BindingManager.SetBindingOptions(m, binding_options) 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 Ensure you have signed the .NET Foundation CLA Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. This adds a place to register at runtime options to customize the binding of types. This customization can be specified at a type or assembly lev...
X Description: What does this implement/fix? Explain your changes. This adds a place to register at runtime options to customize the binding of types. This customization can be specified at a type or assembly lev...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/2543
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:068e5ece-04e4-dd5a-af10-af852afb654f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9030:3476BC:C62D82:114A0C7:6970BE4D |
| html-safe-nonce | f2f9642232dd472e023caa704f832789751151d43931d25031467d6aec8f7447 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDMwOjM0NzZCQzpDNjJEODI6MTE0QTBDNzo2OTcwQkU0RCIsInZpc2l0b3JfaWQiOiI0MDE3ODU3OTc0OTI2MDk3OTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d9c85650a4257dc65d32a1a063d6b9048918394af9617c27bcf61cc86f4c19be |
| hovercard-subject-tag | pull_request:2274250507 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/2543/files |
| twitter:image | https://avatars.githubusercontent.com/u/11414628?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11414628?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. This adds a place to register at runtime options to customize the binding of types. This customization can be specified at a type or assembly lev... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 34817b01ad7cdf8b2beb35ea7b0e2a7609004eff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width