| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… value conversion, and other problems Converter.ToManaged obeys setError consistently PyObject_Hash and tp_hash return nint MakeGenericType and MakeGenericMethod have try/catch RaiseTypeError sets __cause__ instead of changing the message string
AggregateExceptions print better from Python For an overloaded method, MethodBinder.Bind collects all binding errors
…eption.Message (for justification see https://stackoverflow.com/questions/2176707/exception-message-vs-exception-tostring ) Binding failures always have AggregateException as the cause, with PythonExceptions as the inner.inner exceptions.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
This change produces more specific error messages by passing setError=true to Converter.ToManaged whenever possible, such as when there is only one method in methodbinder. To support this:
Does this close any currently open issues?
No, but it provides more information to the user when they come across issues like #1099 . Instead of "No method matches" or "No match found" it now says TypeError : 'int' value cannot be converted to System.Enum
Any other comments?
I added some failing test cases to test_array.py that should be addressed by a future PR.
Checklist
Check all those that are applicable and complete.