Conversation
Ignore and print loader error and proceed with loading if possible.
PR requirements
|
Can you give an example and a testcase for this? If we fail to load types, I'd rather have |
There is no error in calling clr.AddReference(). |
|
Console is not a proper way to report errors. Either |
|
There are direct C-API functions to issue warnings: https://docs.python.org/3/c-api/exceptions.html#issuing-warnings |
|
A verbose flag to enable/disable warning/error console print would be an alternative |
updated to use Debug
|
Closing as the requested changes were not implemented. |
What does this implement/fix? Explain your changes.
Ignore and print loader error and proceed with loading if possible.
There are cases where
"import " in python failed even when clr.AddReference() succeeded, especially when loading "manipulated (probably protected/obfuscated)" C# DLL.
Does this close any currently open issues?
unknown
Any other comments?
Checklist
Check all those that are applicable and complete.
AUTHORSCHANGELOG