Disabled `float` and `bool` implicit conversions by lostmsu · Pull Request #1584 · pythonnet/pythonnet
What does this implement/fix? Explain your changes.
Disabled using __float__ during implicit conversions to .NET floating-point types. Explicit conversion is possible in Python with float(val) and .NET with (double)dynamicPyObj.
Arbitrary Python objects are no longer implicitly converted to .NET bool type.
Does this close any currently open issues?
this is a continuation of #1568
related to #1539
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
- Updated the
CHANGELOG