| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@filmor is this PR under consideration? |
Sorry, something went wrong.
|
We wouldn't want to have binding options as it immensely increases the test matrix: every toggle doubles the space to test. A option to completely override the binding mechanism with deferring the responsibility to the user might be a good idea, but that would require exceptionally careful work with virtual methods. |
Sorry, something went wrong.
|
@koubaa I would like to take this into consideration after we have finally landed the 3.14 changes some time this week. I would like to revisit the interface, though. I'm not a huge fan of using Python.NET to configure itself (documenting the Python.Runtime namespace as something to use in user code), so I would rather like something that uses the pythonnet or clr (though we should eventually deprecate this one) with a pythonic API to modify the settings. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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:
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.