Proposal: Implement binding manager to hold binding overrides#2543
Proposal: Implement binding manager to hold binding overrides#2543koubaa wants to merge 1 commit into
Conversation
0295dd2 to
fe63b01
Compare
|
@filmor is this PR under consideration? |
|
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. |
|
@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 |
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-pythonnetfork, 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)
Checklist
Check all those that are applicable and complete.
AUTHORSCHANGELOG