We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fb051 commit 652bd49Copy full SHA for 652bd49
DSPythonNet3/DSPythonNet3Evaluator.cs
@@ -563,7 +563,8 @@ public override object OutputDataMarshaler
563
}
564
565
// Special case for big long values: decode them as BigInteger
566
- if (PyInt.IsIntType(pyObj))
+ var unmarshalled = pyObj.AsManagedObject(typeof(object));
567
+ if (unmarshalled is PyInt)
568
{
569
using (var pyLong = PyInt.AsInt(pyObj))
570
@@ -578,7 +579,6 @@ public override object OutputDataMarshaler
578
579
580
581
// Default handling for other Python objects
- var unmarshalled = pyObj.AsManagedObject(typeof(object));
582
if (unmarshalled is PyObject)
583
584
using (unmarshalled as PyObject)
0 commit comments