| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 43c972d commit e4e16a4
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,6 @@ This document follows the conventions laid out in [Keep a CHANGELOG][]. | |||
| 41 | 41 | - Reattach python exception traceback information (#545) | |
| 42 | 42 | - PythonEngine.Intialize will now call `Py_InitializeEx` with a default value of 0, so signals will not be configured by default on embedding. This is different from the previous behaviour, where `Py_Initialize` was called instead, which sets initSigs to 1. ([#449][i449]) | |
| 43 | 43 | - Refactored MethodBinder.Bind in preparation to make it extensible (#829) | |
| 44 | - - When calling C# from Python, enable passing argument of any type to a parameter of C# type `object` by wrapping it into `PyObject` instance. ([#881][i881]) | ||
| 45 | 44 | - Look for installed Windows 10 sdk's during installation instead of relying on specific versions. | |
| 46 | 45 | ||
| 47 | 46 | ### Fixed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,6 @@ | |||
| 89 | 89 | <Compile Include="TestDomainReload.cs" /> | |
| 90 | 90 | <Compile Include="TestExample.cs" /> | |
| 91 | 91 | <Compile Include="TestFinalizer.cs" /> | |
| 92 | - <Compile Include="TestInstanceWrapping.cs" /> | ||
| 93 | 92 | <Compile Include="TestPyAnsiString.cs" /> | |
| 94 | 93 | <Compile Include="TestPyFloat.cs" /> | |
| 95 | 94 | <Compile Include="TestPyInt.cs" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -382,9 +382,12 @@ internal static bool ToManagedValue(IntPtr value, Type obType, | |||
| 382 | 382 | return ToArray(value, typeof(object[]), out result, setError); | |
| 383 | 383 | } | |
| 384 | 384 | ||
| 385 | - Runtime.XIncref(value); // PyObject() assumes ownership | ||
| 386 | - result = new PyObject(value); | ||
| 387 | - return true; | ||
| 385 | + if (setError) | ||
| 386 | + { | ||
| 387 | + Exceptions.SetError(Exceptions.TypeError, "value cannot be converted to Object"); | ||
| 388 | + } | ||
| 389 | + | ||
| 390 | + return false; | ||
| 388 | 391 | } | |
| 389 | 392 | ||
| 390 | 393 | // Conversion to 'Type' is done using the same mappings as above for objects. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments