Make methods of `PyObject` inherited from its base .NET classes GIL-safe by lostmsu · Pull Request #1711 · pythonnet/pythonnet
What does this implement/fix? Explain your changes.
passing Python objects to unsuspecting .NET methods, that accept object would lead to crash if those methods try to use standard .NET System.Object members without acquiring the Python GIL first.
Does this close any currently open issues?
fixes #1642
Checklist
Check all those that are applicable and complete.
- Make sure to include one or more tests for your change
- Ensure you have signed the .NET Foundation CLA
- Updated the
CHANGELOG