You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I lost hours on this.
converter.ToPython() does not enter condition "if (value is IList && value.GetType().IsGenericType)" for arrays so arrays that could be converted to python lists are not being converted.
I think it should also work for any generic and not generic ICollection and any Array.
Instead, it currently treats it as a generic PyObject.
@jjaskulowski .NET arrays are not the same as Python lists, even .NET lists are not the same as Python lists.
So technically even what is currently done is not ideal. So what should you do for now? I suggest converting arrays between Python and .NET using some of techniques you can find in this issue tracker.
Activity
den-run-ai commentedon Jan 21, 2018
@jjaskulowski .NET arrays are not the same as Python lists, even .NET lists are not the same as Python lists.
So technically even what is currently done is not ideal. So what should you do for now? I suggest converting arrays between Python and .NET using some of techniques you can find in this issue tracker.
filmor commentedon Jun 14, 2022
The list converters work differently now.