rs.SurfaceEvaluate, when derivative=0 does not work

In PythonScript, I’d like to get a point on a surface from uv.

So
ev=rs.SurfaceEvaluate(srf,uv,0)

but it does not work.
but

ev=rs.SurfaceEvaluate(srf,uv,1)

does work.

Why that does not work when derivative=0 ?

That’s a bug in rhinoscriptsyntax.rhinoscript.surface.py. (@piac)

Here is the code:
success, point, der = surface.Evaluate(parameter[0], parameter[1], derivative)
...
for d in der: rc.append(d) # der is None and not iterable when derivative is 0

I’ve reported this as a bug.

https://mcneel.myjetbrains.com/youtrack/issue/RH-35718

Thank you all,

I could fix bug codes personally,
but I hope it will be fixed officially.

I feel PythonScript in Rhino5 have some little problems like this.

RH-35718 is fixed in the latest Service Release Candidate