[pypy-dev] Help with PyTuple_SetItem error

2018-02-03 Thread Hart, William E
The CPython differences documentation here: http://doc.pypy.org/en/latest/cpython_differences.html References the exception `SystemError('PyTuple_SetItem called on tuple after use of tuple")’ but it’s not clear when/why this exception gets triggered. I’m trying to use scipy with pypy, and th

Re: [pypy-dev] Help with PyTuple_SetItem error

2018-02-03 Thread Hart, William E
FYI, the following example illustrates this issue: from scipy.integrate import ode y0, t0 = [1.0j, 2.0], 0 def f(t, y, arg1): return [1j*arg1*y[0] + y[1], -arg1*y[1]**2] def jac(t, y, arg1): return [[1j*arg1, 1], [0, -arg1*2*y[1]]] r = ode(f, jac).set_integrator('zvode', method='bdf') r.se