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
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Python.Runtime.MethodBinder.MatchParameters(MethodInfo[] mi, Type[] tp)
at Python.Runtime.MethodBinder.Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodBinder.Invoke(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, MethodInfo[] methodinfo)
at Python.Runtime.MethodObject.Invoke(IntPtr target, IntPtr args, IntPtr kw, MethodBase info)
at Python.Runtime.MethodBinding.tp_call(IntPtr ob, IntPtr args, IntPtr kw)
at Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)
at Python.Runtime.PythonConsole.Main(String[] args)
Activity
den-run-ai commentedon Jan 22, 2016
values = [1, 2, 3] is PyList and hence only implements IEnumerable basic interface (not generic):
https://msdn.microsoft.com/en-us/library/system.collections.ienumerable(v=vs.110).aspx
tonyroberts commentedon Jan 22, 2016
@denfromufa it shouldn't crash the runtime though, it should raise a Python exception if there's a problem.
galpin commentedon Jan 22, 2016
@tonyroberts Quite.
den-run-ai commentedon Jan 31, 2016
full traceback from debug build (after
tp_call):autos:
den-run-ai commentedon Jan 31, 2016
using pull request #126 the following proper exception is raised:
tonyroberts commentedon Feb 1, 2016
thanks, that PR has been merged.
cheers,
Tony
den-run-ai commentedon Feb 9, 2016
@tonyroberts @galpin I added more similar checks in #129